DNS Resolution & Troubleshooting
Trace DNS resolution, interpret common records and distinguish resolver problems from application failures.
Educational reference drafted for the Nullwire archive. This is not a claim of completed training or original research; verify examples and customise before presenting it as finished work.
Objective
Investigate why a hostname resolves incorrectly, slowly or not at all. DNS translates names to records; it does not guarantee a reachable application.
What gets looked up?
Common records include:
A— IPv4 address.AAAA— IPv6 address.CNAME— alias pointing to another name.MX— email routing information.TXT— arbitrary text, frequently used for verification and mail security policies.
An authoritative server stores answers for a zone. A recursive resolver locates and caches answers on a client’s behalf.
Inspect results
If dig is installed:
dig example.com A
dig example.com AAAA
dig example.com MX
dig example.com A +short
On Windows, use:
Resolve-DnsName example.com -Type A
Compare an answer’s TTL and response code. NXDOMAIN indicates a name is not present; SERVFAIL indicates resolution failed without delivering a valid answer. Neither tells you everything about the root cause.
Guided investigation
- Query the same name twice and note whether the responses differ.
- Compare A and AAAA records.
- Look up the domain’s authoritative nameservers.
- Confirm which resolver the machine is configured to use.
- Test the application separately after resolution completes.
Common pitfalls
CDNs can return different endpoints by location or resolver. DNS caching can preserve old records after changes. Avoid publishing internal hostnames or complete resolver logs from networks you do not own.
Record your outcome
A useful troubleshooting note captures the query, resolver, timestamp, response code, answer and expected behaviour.