Pcornel
Networking · IP Services › DNS

Resolver

Cheat sheet · https://pcornel.dk/topic.php?topic=1199

Back to the Topic

Answer

A resolver is the DNS client side — the stub resolver on a host and the recursive resolver it is configured to use (for example via DHCP) — that turns names into addresses and caches answers for their TTL.

Remember

  • 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.

First checks

  • resolvectl status / ipconfig /all — configured resolvers
  • dig @<resolver> <name> — resolver answers
  • show running-config | include ip name-server — IOS resolvers

Commands

show hosts
Display the host name cache and configured DNS servers.
resolvectl status
nslookup name 10.0.0.53
dig @10.0.0.53 name
ip name-server
ip domain name
ip dns server
dig @server

Verify in this order

client → configured resolver → answer

Where it usually breaks

local configuration → reachability/transport → request/negotiation → server or policy decision → response/state installation → client-visible result

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=1199

Confirmation

Confirm action

Continue?