NULLWIRE / TECHNICAL LIBRARYDOC ID: KNW-004
NETWORKING / FIELD GUIDE

DNS Resolution & Troubleshooting

Trace DNS resolution, interpret common records and distinguish resolver problems from application failures.

STARTER FIELD NOTE / REVIEW REQUIRED

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.

START OF FILEMARKDOWN / PUBLIC DOCUMENT

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

  1. Query the same name twice and note whether the responses differ.
  2. Compare A and AAAA records.
  3. Look up the domain’s authoritative nameservers.
  4. Confirm which resolver the machine is configured to use.
  5. 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.

Next: Packet Analysis with Wireshark.

⌁END OF KNOWLEDGE RECORDEOF // KNW-004