30% off every course until Sunday, October 11. Our biggest update yet, and we'd like you to try it. Applied automatically at checkout.

Choose your certification

The ANS-C01 exam retires on December 31, 2026

You can still take and pass the exam until then — plan your exam date accordingly.

Copyright (c) 2026 MindMesh Academy. All rights reserved. This content is proprietary and may not be reproduced or distributed without permission.

4.2.3. Troubleshooting DNS Resolution

Troubleshooting DNS resolution involves systematically verifying DNS configurations (e.g., VPC DHCP options sets, Route 53 Resolver rules) and network reachability to DNS servers, ensuring accurate hostname-to-IP translation.

Scenario: An EC2 instance in your AWS VPC cannot resolve hostnames for servers in your on-premises data center. You've confirmed basic network connectivity between AWS and on-premises.

DNS (Domain Name System) resolution issues are common in complex networks, particularly in hybrid cloud environments. If DNS isn't working, applications often can't resolve hostnames to IP addresses, leading to connectivity failures.

Key Troubleshooting Steps for DNS Resolution:
  1. Check VPC DHCP Options Set:
  2. Check VPC DNS Settings:
    • DNS Hostnames: Ensure "Enable DNS hostnames" is set to "Yes" if you need AWS-provided hostnames (e.g., ec2-xx-xx-xx-xx.compute-1.amazonaws.com).
    • DNS Resolution: Ensure "Enable DNS resolution" is set to "Yes" to allow queries to the VPC's DNS server.
  3. Verify Route 53 Resolver Configuration (for Hybrid DNS):
  4. Network Reachability to DNS Server:
    • Use ping or telnet (to port 53 UDP/TCP) from the affected instance to its configured DNS server(s) to verify network connectivity.
    • Check Security Groups and Network ACLs that might be blocking DNS traffic (UDP/TCP port 53).
  5. Check Route 53 Hosted Zone Records: If it's a custom domain, ensure the DNS records are correctly configured in Route 53 public or private hosted zones.
  6. Check Route 53 Failover Records: A failover pair shares one name and type — a primary and a secondary. Route 53 answers with the secondary only when the primary is unhealthy and the secondary is healthy; a secondary with no health check is treated as healthy. If every record is unhealthy, Route 53 falls back to treating them all as healthy and keeps returning the primary, so a failing secondary looks like "failover isn't working". Clients also keep cached answers until the TTL expires. To test failover without an outage, make the primary's health check fail on purpose (e.g., invert its status or point it at a failing endpoint) rather than deleting infrastructure or editing the record by hand.
Practical Implementation: Checking DNS Configuration on EC2 Instance (Linux)
# 1. Check /etc/resolv.conf for configured DNS servers
cat /etc/resolv.conf

# 2. Test DNS resolution for an on-premises hostname
dig server.onprem.local

# 3. Test reachability to the configured DNS server (e.g., 10.0.0.2)
ping 10.0.0.2
telnet 10.0.0.2 53

⚠️ Common Pitfall: Incorrectly configuring DNS forwarding rules in Route 53 Resolver, leading to queries for on-premises domains not reaching the on-premises DNS servers, or vice-versa.

Key Trade-Offs:
  • Simplicity (Default DNS) vs. Hybrid Functionality (Resolver): Default VPC DNS is simple but limited. Route 53 Resolver adds complexity but enables seamless hybrid DNS resolution.

Reflection Question: How does systematically verifying DNS configurations (e.g., VPC DHCP options sets, Route 53 Resolver rules) and ensuring network reachability to DNS servers fundamentally help you troubleshoot DNS resolution issues and restore hostname-to-IP translation for seamless communication?

See how it connects
Alvin Varughese
Written byAlvin Varughese
Founder•20 professional certifications