Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

DNS Protocol Reference

Direct answer

These references follow a DNS answer from the resolver through delegation to the authoritative server, including caching and response size.

When to use this

Use them when names do not resolve, answers are stale or negative, responses are truncated, or DNSSEC validation fails.

First 30 seconds

1. DNS (UDP/TCP 53): resolvers recurse, authoritative servers answer.

2. Records A, AAAA, CNAME, PTR, MX, NS, SOA.

3. TCP for large answers and zone transfers.

4. TTL caching.

5. Check delegation and resolver config.

Operational verification

client → resolver → root → TLD → authoritative → cached answer

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Protocol behaviour per standard; Cisco IOS / IOS XE command examples.
Applicability is projected only from persisted Topic profile and Command metadata.
At a glance

Operational reference

Fast context before you go deeper.

PlatformProtocol behaviour per standard; Cisco IOS / IOS XE command examples.
Key commanddig +trace example.com
Scope / prerequisiteUse them when names do not resolve, answers are stale or negative, responses are truncated, or DNSSEC validation fails.
What next?1 suggested next step
Child topics (this level)9
Evidence0
On this pageJump to a specific section
Command lookup Jump straight to Cisco syntax
Drill down

Subtopics

Go one level deeper into this subject.

Subtopic DNS Header Field Reference

The DNS header exposes query/response direction, opcode, authoritative/truncated/recursion flags and the RCODE used to interpret resolver behavior.

Subtopic DNS Resource Record Field Reference

DNS resource records contain owner name, type, class, TTL, RDLENGTH and type-specific RDATA.

Subtopic DNS SOA Field Reference

The SOA record identifies the zone primary name server, responsible mailbox and timing values used for zone versioning and negative caching semantics.

Subtopic DNS Recursive Resolution Journey

Recursive DNS resolution walks from a client resolver through recursive cache behavior and, on a miss, toward root, TLD and authoritative data before returning a final answer.

Subtopic DNS Delegation & Glue

A DNS delegation uses NS records in the parent zone to point toward authoritative servers; glue addresses are parent-side address records used when needed to reach in-bailiwick nameservers.

Subtopic DNS Negative Caching

DNS can cache negative answers such as NXDOMAIN or no-data responses, causing a corrected authoritative record to remain unseen until the negative cache expires.

Subtopic DNS Truncation & TCP Fallback

DNS commonly starts over UDP, but a truncated response can signal that the client should retry using TCP for the complete answer.

Subtopic DNS EDNS(0) Evidence

EDNS extends DNS by adding an OPT pseudo-record that carries UDP payload size and extensible flags/options.

Subtopic DNSSEC Packet Evidence

DNSSEC adds signatures and validation metadata so a resolver can validate authenticity/integrity of DNS data when the trust chain is available.

Key points
  • NXDOMAIN and NODATA are cached for the SOA negative TTL.
  • TC=1 makes the resolver retry over TCP.
  • Missing glue breaks in-zone name servers.
Key checks
  • dig <name> +trace — delegation
  • nslookup <name> <server> — specific server
  • show hosts — device cache
ReferenceWhat it is1 section · depth on demand
ReferenceImportant terms & boundaries2 sections · depth on demand

Where to look

QuestionReference
Why does the name not resolve?*DNS Recursive Resolution Journey*
Is the delegation broken?*DNS Delegation & Glue*
Why does NXDOMAIN persist?*DNS Negative Caching*
Why does the query switch to TCP?*DNS Truncation & TCP Fallback*
Why does validation fail?*DNSSEC Packet Evidence*
What does this header flag mean?*DNS Header Field Reference*

DNS translates names into addresses and is involved in almost every connection users make. A DNS fault therefore often looks like a general network outage. The tools below query specific servers and record types, which separates DNS problems from connectivity problems and shows exactly what each server answers.

DNS quick reference:

dig example.com A +short
dig @10.0.0.53 example.com MX
dig -x 10.0.20.15
nslookup example.com 10.0.0.53
Resolve-DnsName example.com -Server 10.0.0.53

Record types: A, AAAA, CNAME, MX, TXT (SPF/DKIM/verification), NS, SOA, PTR, SRV. DNS uses UDP 53 and TCP 53 (large responses, zone transfers); DoT uses TCP 853, DoH HTTPS 443.

In depth

DNS translates names into IP addresses (and other records) through a hierarchy of servers: clients ask a recursive resolver, which queries root, TLD and authoritative servers and caches the answers for their TTL.

RecordMaps
A / AAAAName → IPv4 / IPv6
CNAMEAlias → canonical name
PTRIP → name (reverse)
MXMail servers
NS / SOADelegation / zone authority
SRV / TXTServices / text (SPF, verification)

Many "network is down" reports are DNS failures; test with nslookup or dig against the configured resolver before blaming connectivity.

ReferenceConfiguration & state1 section · depth on demand

Key commands

dig +trace example.com
dig @8.8.8.8 example.com +dnssec
nslookup -type=soa example.com
Resolve-DnsName example.com -Type MX
Confirmation

Confirm action

Continue?