What is a DNS root server?
Root servers answer the very first question in every uncached DNS lookup: which servers are responsible for a top-level domain such as .com or .pl.
What do the root servers store?
Only the root zone, a small file listing every top-level domain and the name servers responsible for each. It has around 1,500 delegations and is a few megabytes in size. The root servers do not know the address of any website; they only say where to ask next. A query for shop.example.pl reaching the root receives a referral to the servers for .pl, which in turn refer to the servers for example.pl.
Why are there thirteen root servers?
There are thirteen named identities, a.root-servers.net to m.root-servers.net, a limit that came from fitting all their addresses into a single 512-byte UDP response in the early protocol. Twelve independent organisations operate them. Behind each letter, however, sit many physical instances spread worldwide using anycast, so the real count is in the high hundreds and keeps rising. Your resolver reaches whichever instance of a letter is nearest in routing terms.
How does anycast spread the load?
The same address is announced from many places at once, and routing delivers each query to the closest announcement. A resolver in Mumbai and one in Toronto querying the same root letter talk to different machines on different continents. This also absorbs attacks: flood traffic lands on the instances nearest the attackers while the rest keep working. The same technique powers many public resolvers and content networks; our Point of presence article covers how operators place such instances.
How does a resolver use the root?
It starts from a built-in list of root addresses called root hints, asks one root server for the full list (a priming query), and then caches the answers for days. Because the top-level domain delegations change rarely and carry long lifetimes, a busy resolver only asks the root a few times a day per top-level domain. You can follow the full chain yourself:
dig . NS +noall +answer dig +trace +nodnssec www.example.org dig @k.root-servers.net pl. NS +norec +noall +authority
The +trace output shows the referral from the root to the top-level servers, then to the domain's own servers, ending with the final answer.
What happens if root servers go down?
Very little in the short term. Resolvers hold the top-level referrals in cache for up to two days, so even a complete root outage would take a long time to be noticed. With hundreds of anycast instances run by twelve operators on different software and hardware, a full outage is extremely unlikely. Large attacks on the root have happened and caused some instances to drop queries, with no visible effect for ordinary users.
Is the root zone signed?
Yes. The root has been signed with DNSSEC since 2010, and its key signing key is the trust anchor that validating resolvers ship with. From that anchor, a resolver can verify a signed chain down through top-level domains to individual signed zones. The root key has been rolled over once already, a carefully staged process. Our DNS security article explains how the chain works for your own domains.
Can I run a local copy of the root on my server?
Yes. The technique, standardised in RFC 8806, lets a resolver load the whole root zone and answer root questions itself, which removes a small amount of latency on cache misses and some privacy exposure. Unbound supports it with an auth-zone block that transfers the zone from public sources and validates it with DNSSEC:
auth-zone:
name: "."
primary: 199.9.14.201 # b.root-servers.net
primary: 2001:500:200::b
fallback-enabled: yes
for-downstream: no
for-upstream: yes
zonefile: "/var/lib/unbound/root.zone"
A resolver like this runs comfortably on any machine in our catalogue, even an ESSENTIAL-1, and is useful when you operate mail servers that perform many lookups, or when you want your own validating resolver close to your services.
Should I point my server at a public resolver or run my own?
Either works. Distribution defaults usually point at the data centre resolvers or a public service, which is fine for most workloads. A local Unbound instance on the server itself adds caching, DNSSEC validation under your control and independence from outside resolver incidents. Mail servers especially benefit, because blocklist lookups can be rate limited on shared public resolvers. Our How DNS works article covers the wider system.
Related pages
How DNS works
From a typed name to an IP address: resolvers, root and TLD servers, authoritative zones, record types, TTLs and caching, with the commands to watch it happen.
Read moreDNS security
Protecting domains and lookups: registrar locks, DNSSEC signing, encrypted transports, resolver hardening and the records that stop email spoofing.
Read moreDNS poisoning
How forged DNS answers send users to the wrong server, cache poisoning against hijacking, DNSSEC validation, resolver hardening and protecting your domains.
Read morePoint of presence
Where networks meet: what a point of presence contains, how exchanges and peering use them, and how they differ from a data centre hosting servers.
Read moreQuestions and answers
How many DNS root servers are there?
Thirteen named identities, a to m, run by twelve organisations. Through anycast, each name is served by many instances, totalling well over a thousand machines worldwide.
Do root servers know the address of my website?
No. They only list the servers responsible for each top-level domain. Your own domain records live on its authoritative name servers.
What are root hints?
A built-in list of root server names and addresses that a resolver uses to start its first lookup, after which it fetches and caches the current list.
What would happen if the root servers failed?
Almost nothing at first. Resolvers cache top-level referrals for up to two days, and the anycast design makes a complete outage extremely unlikely.
Can a resolver keep its own copy of the root zone?
Yes. Resolvers such as Unbound can load and validate the full root zone locally, as described in RFC 8806.