Networking · IP Services › DNS
Resolver
Cheat sheet · https://pcornel.dk/topic.php?topic=1199
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 resolversdig @<resolver> <name>— resolver answersshow running-config | include ip name-server— IOS resolvers
Commands
show hosts- Display the host name cache and configured DNS servers.
resolvectl statusnslookup name 10.0.0.53dig @10.0.0.53 nameip name-serverip domain nameip dns serverdig @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