The Servers Involved
- Resolver: the server your computer or server asks, run by your network, your provider, or a public DNS service. It does the work of the lookup and caches the answers.
- Root servers: the starting point. They do not know example.com, but they know which servers handle
.com. There are 13 root server names,a.root-servers.nettom.root-servers.net, run by 12 organizations, and each name is served by many copies around the world. - TLD servers: the servers for a top-level domain such as
.comor.org. They know which name servers are responsible for each domain registered under it. - Authoritative servers: the name servers for the domain itself, where its records are kept. Their answer is the final one.
A Lookup Step by Step
- A browser needs the address of
www.example.comand asks the resolver. - If the resolver has a cached answer that has not expired, it replies at once.
- Otherwise it asks a root server, which refers it to the
.comservers. - A
.comserver refers it to the domain's name servers, from the domain's NS records. - The authoritative server answers with the record, for example an A record with
203.0.113.10. - The resolver caches the answer for as long as its TTL allows and returns it.
Caching and TTL
Every record has a TTL (time to live) in seconds. A record with a TTL of 3600 may be kept in caches for up to an hour. Resolvers, operating systems, and browsers all cache. A "does not exist" answer is cached too, for a time taken from the zone's SOA record.
Before you move a site to a new server, lower the TTL of the records you will change, for example to 300, at least one full old TTL in advance. After the move works, raise it again.
Common Record Types
- A: name to IPv4 address.
- AAAA: name to IPv6 address; see IPv4 vs IPv6.
- CNAME: name to another name.
- MX: the mail servers for the domain.
- TXT: arbitrary text, used for SPF, DKIM, and domain verification.
- NS: the domain's name servers.
- SOA: zone settings, including the serial number.
- PTR: address to name, for reverse DNS.
- CAA: which certificate authorities may issue certificates.
What "Propagation" Really Is
DNS does not push changes anywhere. When you edit a record, the authoritative server has the new value at once. Resolvers that cached the old value keep using it until its TTL runs out, so different people see different answers for a while. That waiting period is what "propagation" means.
Changing the name servers of a domain takes longer, because the delegation NS records are held by the TLD servers, which commonly publish them with a long TTL, often a day or more.
On Your Server: Look Up Records with dig
dig is in the bind9-dnsutils package on Ubuntu and Debian (the older name dnsutils still installs it) and in bind-utils on AlmaLinux and Rocky Linux.
dig example.com
dig +short example.com AAAA
dig example.com MX
dig -x 203.0.113.10
dig +trace example.comstatus:in the header:NOERRORmeans the name exists,NXDOMAINthat it does not,SERVFAILthat the resolver could not get an answer.- ANSWER SECTION: each record with its remaining TTL. Run the command twice: from a cache, the TTL counts down.
- SERVER: which resolver answered.
+trace: does the lookup itself, from the root down, and prints every referral. It shows what the authoritative servers say now, regardless of caches.
On Ubuntu, /etc/resolv.conf usually points to 127.0.0.53, the local systemd-resolved cache; resolvectl status shows the real resolvers behind it.
When Lookups Fail
- NXDOMAIN in a browser: see DNS_
PROBE_ .FINISHED_ NXDOMAIN - The server cannot resolve anything: see temporary failure in name resolution.
- An old answer that will not go away: clear the local cache, as in how to flush the DNS cache in Linux, and compare with
dig +trace. - SERVFAIL for one domain only: often a DNSSEC error in that domain's setup, or name servers that do not answer.
Updated:
Linux VPS with Full Root Access
MUVCloud cloud servers run on KVM with Enterprise NVMe SSD storage and full root access, in Turkey, the Netherlands, and the USA.
More Guides
No Limits on Service or Support
You are not on your own as your projects grow. Our support engineers are ready 24/7, on several channels, whenever you need them.

- 100% customer satisfaction goal
- Our own hardware
- 24/7 ticket and email support
- 4 countries with locations