Amazon Web Services - Working with DNS

Last Updated : 5 Jun, 2026

DNS (Domain Name System) converts domain names like www.google.com into IP addresses that computers use to communicate over the internet. Amazon Route 53 is AWS’s DNS service that helps route user requests to resources such as EC2 instances, Load Balancers, and S3 buckets. It also supports advanced traffic routing based on latency, health checks, and geographic location.

How DNS Requests Work

When a user types geeksforgeeks.org into a browser, DNS translates the domain name into an IP address so the browser can connect to the correct server.

2056958161

1. Recursive Query

The user’s computer sends a request to a Recursive Resolver (usually provided by the ISP or public DNS services like Google DNS 8.8.8.8) asking:

“What is the IP address of geeksforgeeks.org?”

2. Root Server

The resolver contacts a Root Nameserver (.) and asks:

“Who manages the .org domain?”

The root server replies with the address of the .com TLD server.

3. TLD Server

Next, the resolver asks the Top-Level Domain (TLD) server for .com:

“Who manages geeksforgeeks.org?”

The TLD server responds with the authoritative nameserver for amazon.com.

4. Authoritative Nameserver (Route 53)

The resolver then queries the Authoritative Nameserver, such as Amazon Route 53:

“What is the IP address for geeksforgeeks.org?”

Route 53 returns the correct IP address, for example:

192.0.2.44

5. Response to the User

The resolver sends the IP address back to the user’s browser, and the browser connects to the web server hosting the website.

Troubleshooting DNS Issues in Route 53

Let us walk through a common DNS troubleshooting scenario. Suppose a customer transferred the domain awskcvideos.com to Amazon Route 53, but the DNS records are not resolving after the transfer.

Step 1: After you sign an AWS management console, navigate to the Amazon Route53 console.

Step 2: In the navigation panel, choose Registered Domains. 

Step 3: Click the desired domain name.

Step 4:Take note of the four nameservers.

Step 5: In the navigation panel choose the hosted zone and click the domain name.

Step 6: Take note of the four name servers in the hosted zone and verify the name servers listed in both sections marked.

In this case, the customer with the domain "awskcvideos.com" will not be able to resolve any record in their hosted zone. The solution is to update the nameservers in the registered domain section with the nameservers in their Route53 hosted zone.

Troubleshooting Common DNS Issues

When DNS fails, it can be frustrating. Here is how to debug the most common errors.

1. Domain Transferred but Not Resolving

Scenario: You transferred my-site.com to Route 53, but it's down. 

Fix: Verify your Nameservers (NS).

  • Go to the Registered Domains section in Route 53 and note the 4 name servers listed there.
  • Go to your Hosted Zone and look at the NS record.
  • These must match. If the Hosted Zone lists different NS records than the Registered Domain, the internet doesn't know which phone book to look in. Update the Registered Domain to use the Hosted Zone's name servers.

2. SERVFAIL Error

Meaning: The DNS server was unable to process this query due to a problem with the authoritative name server. 

Common Fixes:

  • Check whether DNSSEC is enabled but incorrectly configured.
  • Verify that your firewall or Network ACLs (NACLs) are not blocking UDP port 53, which is required for DNS traffic.

3. NXDOMAIN Error

Meaning: "Non-Existent Domain." The domain name doesn't exist. 

Common Fixes:

  • Check for spelling mistakes or typos in the DNS record name.
  • Ensure the record was created in the correct Hosted Zone in Amazon Route 53.
  • If using a Private Hosted Zone, verify that the correct VPC is associated with the hosted zone.
Comment