Concepts / Names and DNS

Names and DNS

Recursive resolver

Also called resolver, DNS server, resolv.conf, nameserver, DNS cache

The DNS server a device asks: it does the whole search and caches the answers.

The resolver searches once, then answers from its cache
The resolver searches once, then answers from its cache

The device asks one server and waits. The resolver does the whole search, keeps the answer for its TTL, and gives the same answer to the next question without asking anyone.

A recursive resolver is the DNS server a device asks: it does the whole search and keeps each answer in its cache for the record's TTL. Its address is in /etc/resolv.conf, usually set by DHCP; the SERVER line in dig's output names it. A device believes whatever its resolver says, and the resolver sees every name the device looks up, which is why a VPN should carry DNS too.

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