isitdns? it's always dns  until it isn't

wiki/Fundamentals/DNS fundamentals: refresher

Fundamentals

DNS fundamentals: refresher

Asks which servers are in charge of a zone.

 dig @1.1.1.1 isitdns.net NS
; <<>> DiG 9.20.11-0ubuntu0.2-Ubuntu <<>> @1.1.1.1 isitdns.net NS
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 16114
;; flags: qr rd ra ad; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
;; QUESTION SECTION:
;isitdns.net. IN NS
;; ANSWER SECTION:
isitdns.net. 86400 IN NS hera.ns.cloudflare.com.
isitdns.net. 86400 IN NS coleman.ns.cloudflare.com.
;; Query time: 33 msec
;; SERVER: 1.1.1.1#53(1.1.1.1) (UDP)
;; WHEN: Mon Sep 14 17:42:30 CDT 2026
;; MSG SIZE rcvd: 98

GO NOERROR and the zone nameservers

NO GO SERVFAIL, which means the resolver could not finish the walk

run this query in the dig tool →

what each part of this output means →

What DNS is#

DNS maps a name (example.com) to one or more typed resource records (A, AAAA, MX, TXT, …) through a hierarchy of servers that each know one piece of the answer or know who does (RFC 1034 section 2.4). A client asks a recursive resolver, which walks root, TLD, and authoritative until it gets an answer, then caches and returns it. A server can be authoritative for the zones it hosts and recursive for everything else; the aa flag below is what tells you which one answered.

See anatomy-of-a-query for the walk hop by hop and record-types for the full record-type index.

The flags in the DNS header#

A DNS message header packs a row of single-bit flags that tell you, at a glance, what kind of message this is. The ones you'll see most in query logs:

FlagSet whenMeans
qrResponse (not query)qr=false is a question frame, qr=true is an answer frame.
aaAuthoritativeThe responder owns this zone. Check this before trusting an answer is canonical.
tcTruncatedUDP answer did not fit in the packet. Client should retry over TCP.
rdRecursion desiredClient wants the resolver to do the walking. Set on virtually every stub-resolver query.
raRecursion availableServer is willing to recurse. Authoritative-only nameservers, like the roots and most TLDs, leave it unset.
adAuthenticated dataResolver's assertion that DNSSEC validation succeeded, not proof: see dnssec.
cdChecking disabledClient is asking the resolver NOT to validate DNSSEC. Rare.

Source: RFC 1035 section 4.1.1. An aa=1 answer with unexpected rdata is a zone misconfiguration, not the resolver's fault; missing RRSIGs under a published parent DS make a zone bogus and SERVFAIL for validating resolvers, while a zone with no DS at the parent is insecure and its unsigned answers resolve normally (RFC 4035 section 4.3).

rcode: the answer's verdict#

rcodeMeaningWhen you see it
NOERRORSuccessNormal answer.
NXDOMAINName does not existA typo, a policy filter, or a real misconfiguration.
SERVFAILServer failureUpstream broken, DNSSEC validation failed, recursion timed out.
REFUSEDServer won't answerClient outside the ACL, or recursion off and the name is not in an owned zone.
FORMERRMalformed queryClient bug or an EDNS option the server does not understand.
NOTIMPNot implementedQuery type or opcode not supported: 1.1.1.1 answers ANY with NOTIMP plus EDE 21, an operator policy choice (Cloudflare: Deprecating the DNS ANY meta-query type); RFC 8482 instead defines a minimal or synthesized HINFO answer to decline ANY.

Source: RFC 1035 section 4.1.1.

TTL#

A record's TTL is how long a resolver may cache the answer before re-asking authoritative (RFC 1035 section 3.2.1). Short TTLs (60-300s) propagate a fix fast but cost more queries to authoritative; long TTLs (3600s+) are cheap on authoritative but a mistake can stay cached for up to the whole TTL, and longer at a resolver that serves stale data (RFC 8767). Every record in an RRset must carry the same TTL (RFC 2181 section 5.2).

Encrypted transport (DoT, DoH, DoQ) and the DNSSEC chain of trust are each a full page on their own: see dot-doh and dnssec.

RFCs#

  • RFC 1034: concepts and facilities
  • RFC 1035: wire format, header flags, rcodes, TTL
  • RFC 6891: EDNS(0), the OPT pseudosection in the capture above
  • RFC 4035: DNSSEC protocol, the ad/cd flags
  • RFC 9499: DNS terminology

See also#