/SERVICES

Unexpected AWS Route 53 Costs Caused by a DNS Attack: How We Fixed It for Good

Not every cloud attack causes downtime. Some are designed purely to inflate your AWS bill. While reviewing our Amazon Route 53 billing on a Tuesday morning, we noticed sudden cost spikes with no impact on availability or performance. The culprit turned out to be a Random Subdomain (Water Torture) DNS attack. In this post, we share what happened, how this type of attack works, and the single Route 53 configuration change that permanently neutralised the financial impact.

Route 53 query volume spiked from 5M to 200M+ per day. No downtime, just extra cost.
Random Subdomain attacks target your AWS bill, not your uptime.
One wildcard Alias record neutralises the attack permanently, with zero operational overhead.

/ The surprise: unexplained Route 53 cost spikes

While reviewing our AWS billing data, we noticed unusual spikes in Amazon Route 53 costs. On certain days, DNS query volume jumped from a normal baseline of a few million queries per day to well over 200 million queries in a single day. This resulted in additional charges of almost $100 per day, compared to the usual few dollars.

Despite the spike, there was no availability impact, no application disruption, and no operational alarms. The issue was purely financial.

/ Root cause: a Random Subdomain (Water Torture) attack

Initially we suspected a misconfiguration on our side. After enabling and analysing Route 53 Query Logs, the picture became clear: we were dealing with a Random Subdomain attack, also known as a Water Torture attack.

An attacker generates DNS queries for random, non-existent subdomains, for example:

  • xk19d7.aws.example.com
  • q92kf1.aws.example.com

Because these domains do not exist, Route 53 returns NXDOMAIN responses. NXDOMAIN responses cannot be cached by intermediate DNS resolvers, which means every single query has to hit Route 53 directly. The result: no service disruption, but a significant DNS bill.

In our case, more than 99% of all queries resulted in NXDOMAIN, a textbook indicator of this type of attack.

/ Why AWS doesn’t automatically block this

Amazon Route 53 is designed to handle massive query volumes without degradation. From an availability point of view, everything works exactly as expected. The pricing model tells a different story:

  • Route 53 pricing is based on DNS query volume.
  • A technically harmless attack can still be financially painful.
  • Without proactive monitoring, this is often only discovered after the fact, through Cost Explorer.

/ The solution: a wildcard Alias DNS record

After discussing mitigation options with AWS, one solution stood out for its simplicity and effectiveness: a wildcard Alias record.

*.aws.example.com  →  A (Alias)  →  AWS resource

The Alias target can be any of the following:

  • An existing CloudFront distribution.
  • An Application Load Balancer.
  • Or a minimal CloudFront distribution returning a static response.

/ Why this works so well

This approach provides two critical layers of cost protection.

First, no Route 53 query charges.

DNS queries to Alias records pointing to AWS resources are free of charge. Even if millions of queries reach Route 53, they are not billed. There is a catch: the record must specifically be an Alias. A regular A-record pointing to a dummy IP address is not free.

Second, resolver caching becomes possible.

Because responses now return NOERROR instead of NXDOMAIN, intermediate resolvers can cache the result. This further reduces the query volume that reaches Route 53 in the first place.

/ Does this impact legitimate DNS records?

No. Route 53 always resolves records in this order:

  • Explicit records (e.g. api.aws.example.com) take precedence.
  • The wildcard record is only used for unknown subdomains.

Existing workloads behave exactly the same as before.

/ Our decision

We chose to deploy the wildcard Alias record permanently. The benefits clearly outweighed any drawbacks:

  • Immediate financial protection.
  • No operational complexity.
  • No impact on existing workloads.
  • No need for manual intervention during attacks.

Since implementing this change, similar attacks are financially neutralised.

/ What about AWS Shield Advanced?

AWS Shield Advanced provides:

  • Real-time DDoS detection.
  • Access to the AWS DDoS Response Team.
  • Potential service credits for confirmed DDoS cost impact.

AWS expects customers to already implement the basics, and the wildcard record is explicitly one of them. In practice, with the wildcard in place, Route 53 query costs drop to almost zero. Shield Advanced becomes relevant mainly for larger or more complex attack scenarios.

/ Closing thought

Not every attack causes downtime. Some attacks are designed purely to impact your cloud bill, and Random Subdomain attacks are a clean example. The fix is small. The cost of missing it is not.

Three takeaways:

  • Monitor not only availability, but also DNS costs.
  • Sudden NXDOMAIN spikes are a major red flag.
  • A single DNS configuration change can save hundreds or thousands per year.

A wildcard Alias record in Route 53 is no longer optional — it is an essential defensive measure.

/ Need (urgent) help or advice

Feel free to contact us for

/

/CONTACT

Contact - ipsum dolor

/FAQ

FAQ - ipsum dolor sit amet

Lorem ipsum dolor sit amet, consectetur adipiscing elit. In porta posuere nisi sed blandit. Nam cursus interdum maximus. 

Lorem ipsum dolor sit amet, consectetur adipiscing elit. In porta posuere nisi sed blandit. Nam cursus interdum maximus. 

Lorem ipsum dolor sit amet, consectetur adipiscing elit. In porta posuere nisi sed blandit. Nam cursus interdum maximus. 

Lorem ipsum dolor sit amet, consectetur adipiscing elit. In porta posuere nisi sed blandit. Nam cursus interdum maximus. 

/INSIGHTS

Related insights - dolor sit amet, consectetur adipiscing elit 

Lorem ipsum dolor sit amet, consectetur adipiscing elit. In porta posuere nisi sed blandit. Nam cursus interdum maximus.

Your trusted partner for Cloud Neutral Platform Managed Services

/NAVIGATION

BTW BE 0677.419.096

/CONTACT

We have a presence in both the Flemish and French region of Belgium and also in Luxembourg.