Use it when a client cannot resolve names, to check which DNS server it asks and whether that server answers.
Resolver
client → configured resolver → answer
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
show hostsShow Commands
Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification & troubleshooting Narrow the fault
Step 2 Common resolver problems Narrow the fault
- Clients using public resolvers that cannot resolve internal names.
- Search domains missing, so short names fail.
- VPN clients adding resolvers that answer for all domains.
- Local caches (
ipconfig /displaydns, systemd-resolved, nscd) holding stale answers.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- A/AAAA map names to IPv4/IPv6; CNAME aliases one name; PTR is reverse lookup
- Recursive and authoritative roles answer different questions
- UDP 53 is common, while TCP 53 is required for some large replies and zone operations
- NXDOMAIN, NODATA, SERVFAIL and timeout indicate different boundaries; TTL controls cache lifetime.
resolvectl status / ipconfig /all— configured resolversdig @<resolver> <name>— resolver answersshow running-config | include ip name-server— IOS resolvers
ReferenceWhat it is1 section · depth on demand
Stub vs recursive resolver
| Stub resolver | Recursive resolver | |
|---|---|---|
| Where | On the client OS | DNS server (internal, ISP, 1.1.1.1) |
| Does | Sends one query, uses the answer | Walks root → TLD → authoritative, caches |
| Config | DHCP option 6, static settings | Forwarders, root hints |
Check client settings with ipconfig /all, resolvectl status or scutil --dns, and test a specific server with nslookup name 10.0.0.53 or dig @10.0.0.53 name.
ReferenceWhy it matters1 section · depth on demand
When to use it
Use it to separate client resolver configuration, transport, delegation, authoritative data and caching failures.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
The DNS resolver
The resolver is the part of DNS that answers applications' name questions. RFC 1034 describes resolvers as the link between user programs and name servers, answering from a cache of earlier results where possible to reduce delay and server load. A stub resolver, as on most clients, hands the work to a name server that performs recursive queries for it.
Resolver types
| Type | Role |
|---|---|
| Stub resolver | On clients; asks configured servers with recursion desired |
| Recursive (caching) resolver | Follows referrals from the root down and caches results |
| Forwarder | Sends queries to another recursive resolver |
Recursion (RFC 1034)
The DNS requires iterative queries and makes recursion optional. A client sets RD (recursion desired); a server sets RA (recursion available) to show it will recurse.
Answers a resolver can return (RFC 1034)
| Result | Meaning |
|---|---|
| Data | The requested records |
| Name error | The name doesn't exist (NXDOMAIN) |
| Data not found | The name exists, but not with that record type |
| Temporary failure | Must not be reported as one of the errors above |
host$ resolvectl status | grep -E "DNS Servers|Current DNS"
Current DNS Server: 10.20.0.53
DNS Servers: 10.20.0.53 10.20.0.54
host$ dig +noall +comments +answer www.example.net
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
www.example.net. 300 IN A 192.0.2.80
R1(config)# ip name-server 10.20.0.53 10.20.0.54
R1(config)# ip domain lookup source-interface Loopback0
Resolver configuration on Cisco devices
| Command | Purpose |
|---|---|
ip name-server | DNS servers for the device's own lookups |
ip domain name | Default domain appended to short names |
no ip domain lookup | Stops IOS treating mistyped commands as host names |
ip dns server | Makes the router a caching DNS server for clients |
Troubleshooting
Query the resolver directly (dig @server), compare with an authoritative server, and check TTLs and negative caching when changes don't appear.
Documented example, not captured output.
Quick reference
A DNS resolver is the server clients ask when they need a name looked up. It either answers from its cache or walks the DNS hierarchy on the client's behalf, then caches the answer for the record's TTL. Which resolver a client uses determines which internal names it can see and whether security filtering applies, so resolver addresses are an important part of DHCP and VPN configuration.
A DNS resolver (recursive server) answers client queries by walking the hierarchy (root → TLD → authoritative) and caching results for the TTL.
ip name-server 10.0.0.53 10.0.0.54
ip domain lookup source-interface Loopback0
ip dns server ! IOS as caching resolver
dig +trace example.com
Clients should use internal resolvers (which forward or resolve recursively) — they enable internal zones, logging and protective DNS filtering. Open resolvers reachable from the internet are abused for amplification attacks.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in IP Services → DNS → Resolver. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc1034.html · confidence 94%