DNS Resolution Failing — Users Cannot Reach Websites by Name
Presenting Symptom
Users in the branch office cannot access websites by domain name (e.g., www.example.com), but can reach them by IP address.
Network Context
The branch office has a Cisco 4321 ISR router (IOS XE 16.9) connected to the corporate WAN via a serial link. Inside the branch, there is a single VLAN with a DHCP server providing IP addresses and DNS server 10.0.0.2. The DNS server is a Windows server located in the data center, reachable via the WAN. The router is configured with NAT for internet access.
Diagnostic Steps
Verify DNS resolution on a client
nslookup www.example.comServer: UnKnown
Address: 10.0.0.2
DNS request timed out.
timeout was 2 seconds.
*** Request to UnKnown timed-outThe client cannot resolve the domain name. The DNS server 10.0.0.2 is not responding. This confirms the problem is DNS-related.
Check connectivity to the DNS server from the client
ping 10.0.0.2Reply from 10.0.0.2: bytes=32 time=1ms TTL=128 Reply from 10.0.0.2: bytes=32 time=1ms TTL=128
The client can reach the DNS server via ICMP. The issue is not basic connectivity; it is likely a DNS service or firewall issue.
Check DNS server configuration on the router
show running-config | include ip name-serverip name-server 10.0.0.2
The router is configured with the correct DNS server. If this line is missing or incorrect, the router itself cannot resolve names.
Test DNS resolution from the router
ping www.example.comTranslating "www.example.com"...domain server (10.0.0.2) % Unrecognized host or address, or protocol not running.
The router also fails to resolve the name. This indicates the DNS server is not responding to queries from the router. Possible causes: DNS server down, ACL blocking UDP port 53, or routing issue.
Check if DNS queries are being sent and responses received
debug ip udpUDP: src=10.0.0.1, dst=10.0.0.2, sport=1025, dport=53, len=... UDP: src=10.0.0.2, dst=10.0.0.1, sport=53, dport=1025, len=...
If you see outgoing queries but no responses, the DNS server is not replying. If no queries are seen, the router may not be configured to use DNS. This debug confirms the traffic flow.
Check ACLs on the router that might block DNS
show access-listsExtended IP access list 100
10 permit udp any any eq domain
20 permit tcp any any eq domain
30 deny ip any anyIf an ACL is applied to the WAN interface, ensure it permits DNS (UDP/TCP port 53) to the DNS server. If the ACL denies DNS, traffic is blocked.
Verify the DNS server is listening on port 53
telnet 10.0.0.2 53Trying 10.0.0.2 53 ... % Connection refused by remote host
If connection is refused, the DNS server is not listening on port 53. This indicates the DNS service is not running or is misconfigured.
Root Cause
The DNS server (10.0.0.2) is not running the DNS service. The server is reachable via ping, but it is not listening on UDP/TCP port 53. This prevents any DNS resolution for clients and the router.
Resolution
Verification
From the router, run: ping www.example.com Expected output: Translating "www.example.com"...domain server (10.0.0.2) [OK] Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 93.184.216.34, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5)
Prevention
1. Implement DNS server monitoring to alert when the DNS service stops. 2. Use redundant DNS servers (primary and secondary) in DHCP configuration. 3. Regularly test DNS resolution from multiple points in the network.
CCNA Exam Relevance
On the CCNA 200-301 exam, DNS troubleshooting scenarios appear in multiple-choice and drag-and-drop questions. The exam tests the ability to identify DNS resolution failures by interpreting show commands and debug output. Key fact: DNS uses UDP port 53 for queries and TCP port 53 for zone transfers. A CCNA candidate must know how to verify DNS configuration and connectivity.
Exam Tips
Remember that DNS uses UDP port 53; ACLs must permit this traffic.
Use 'ping' with a domain name to test DNS resolution from the router; if it fails, check 'ip name-server' configuration.
The 'debug ip udp' command can confirm if DNS queries are being sent and received.
Commands Used in This Scenario
ping [ip]
The ping command sends ICMP echo requests to a destination IP address to test network connectivity and measure round-trip time.
show access-lists
Displays all configured access control lists (ACLs) on the device, including their entries and match counters, used to verify ACL configuration and traffic filtering.
show running-config
Displays the current active configuration in DRAM, showing all non-default settings.
Test Your CCNA Knowledge
Practice with scenario-based questions to prepare for the CCNA 200-301 exam.
Practice CCNA Questions