20k Unexpected DNS Queries / Day - Expectations and Cost Avoidance

0

Hi AWS folks - I'm new to AWS. I recently registered a domain name with Route 53. Since the registration, I've received around 20,000 DNS queries / days, which has resulted in around $0.02 in charges. Obviously, this is a small amount; but, I want to manage my own expectations here. Is this normal and simply the cost of doing business (having a public domain name)? Or is this unexpected and there's a simple fix that's worth implementing? I do not have or intend to have a public website. I simply registered the domain name so I could use it to configure an API Gateway REST API. Thanks in advance for any help!

posta 4 mesi fa177 visualizzazioni
2 Risposte
1

You can create DNS records with longer TTL to increase caching and reduce queries.

To protect your hosted zone from NXDOMAIN DDoS attacks, you can refer to Configuring Route 53 for cost protection from NXDOMAIN attacks

AWS
ESPERTO
Mike_L
con risposta 4 mesi fa
  • This help, but for me there is a one options which will be more helpfully for everyone, "ALIAS to null" or similar option which for specific subdomain will just reply with NXDOMAIN permanently, because now normal NXDOMAIN reply is PAID reply and NXDOMAIN also has smaller TTL forced by other DNS server, even if we setup high one, it's down to smaller one by public DNS resolvers for example... ;-(

0

Hello.

In my environment, even when DNS records are not linked to a service, about 5,000 queries occur per month, so I think it is normal to have about 20,000 queries when linked to API Gateway etc.

profile picture
ESPERTO
con risposta 4 mesi fa
profile pictureAWS
ESPERTO
verificato 4 mesi fa
  • Hi, agree with Riku: when a domain name gets public, you'll have multiple requests from other DNS servers in the world to create / refresh their cache about your domain info. To slightly reduce those requests, you can increase the allowed caching duration of your records.

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande