Skip to content
Log In Sign Up info@muvcloud.com

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.net to m.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 .com or .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

  1. A browser needs the address of www.example.com and asks the resolver.
  2. If the resolver has a cached answer that has not expired, it replies at once.
  3. Otherwise it asks a root server, which refers it to the .com servers.
  4. A .com server refers it to the domain's name servers, from the domain's NS records.
  5. The authoritative server answers with the record, for example an A record with 203.0.113.10.
  6. 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.com
  • status: in the header: NOERROR means the name exists, NXDOMAIN that it does not, SERVFAIL that 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

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.

Cloud VPS Plans Starting at2.99 $/mo Cheap Linux VPS

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.

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