Concepts / Names and DNS

Names and DNS

DNS response codes

Also called NXDOMAIN, SERVFAIL, NOERROR, REFUSED, rcode, negative caching

The status on every DNS answer: found it, no such name, or couldn't get an answer.

Each place a lookup breaks has its own message
Each place a lookup breaks has its own message

A timeout means nobody answered, NXDOMAIN means the zone's own server said no, and SERVFAIL means the resolver got no usable answer. A saved answer, a no included, lasts until its TTL runs out. Once the address comes back right, the fault is past DNS.

dig prints it as status:. NOERROR with an answer is a hit. NXDOMAIN means the zone's own server says the name doesn't exist, and resolvers save that no for the last number of the zone's SOA (negative caching). SERVFAIL means the resolver got no usable answer: a zone that failed to load, servers it can't reach, a signature that doesn't check. REFUSED means the server won't answer you. No status at all, a timeout, means nobody answered.

See it on real machines

Read next

Learn it on real machines.

Every lab is a small network of real Linux machines in your browser. Sign in with Google or email to start.

Start this lab