← Back to blog

Authoritative vs Recursive DNS: What Each Server Does

November 30, 2026
Authoritative vs Recursive DNS: What Each Server Does

An authoritative DNS server holds the official records for a domain and answers from its own data. A recursive resolver holds no records of its own: it goes looking for the answer on behalf of a client, then caches it. Once you know which of the two you are talking to, most DNS troubleshooting gets much faster, and our DNS reference and Traceroute tool are built for exactly that kind of checking.

Pingfloat
pingfloat.com
Trace DNS Issues More Clearly
Use Pingfloat’s DNS reference and traceroute tool to check DNS lookups and investigate network paths when troubleshooting server responses.
Visit

TL;DR

  • Authoritative servers answer for the zones they are configured to serve, from local data. Recursive resolvers ask other servers on a client's behalf and cache what they learn.
  • A normal lookup runs: your device, a recursive resolver, a root server, a TLD server, then the domain's authoritative server.
  • Caching is governed by TTL. After you change a record, resolvers keep serving the old answer until their cached copy expires.
  • One piece of software can play both roles, but they are different jobs with different access rules.
  • To debug, query the resolver, then query the authoritative servers directly with recursion off, and compare.

Table of Contents

The short definition of each role

Per ISC's BIND knowledge base, an authoritative nameserver is configured to answer queries for a specified set of zones. A zone is the portion of the DNS namespace a given operator manages, such as example.com. The server satisfies queries from its own data without consulting anyone else. A recursive nameserver does the opposite: it answers by asking other nameservers, using its cache when it can, and otherwise walking the namespace from the root, following referrals until it finds the answer.

RFC 9199 frames the same split: the authoritative server knows the content of a zone and answers from local copies, while the recursive resolver iteratively queries authoritative and other servers to answer client requests. The client itself usually runs a small stub resolver library that simply forwards the question to a recursive resolver.

In practice:

Authoritative serverRecursive resolver
Source of answersIts own zone dataOther servers, or its cache
Who it servesAnyone asking about its zonesIts own clients (home users, a company network)
Who runs itYour DNS host or registrar, or youYour ISP, your company, or a public resolver
What you edit thereRecords: A, CNAME, MX, NSNothing. You can only wait for caches or flush them
Typical failureWrong or missing record, dead serverStale cache, validation failure

That last row matters most. If you own a domain, you control the authoritative side. You never control the world's recursive resolvers.

How a lookup travels from your device to the answer

IBM's dig +trace walkthrough lays the flow out cleanly. For www.example.com:

  1. The stub resolver on your device asks its recursive resolver for the address.
  2. The resolver asks a root server for the NS records of com and gets a referral to the .com TLD servers.
  3. It asks a TLD server for the NS records of example.com and gets a referral to that domain's authoritative servers.
  4. It asks those authoritative servers for the A record and receives the answer.
  5. It caches the answer for the record's TTL and hands it back to the client.

Cloudflare's DNS overview describes the same sequence as eight steps and notes that when information is cached, steps are skipped and the lookup is quicker. The root and TLD servers are themselves authoritative, just for the top of the tree. Their job is to point onward, not to hold your records.

Referrals, and why they matter

When a server is not authoritative for the name but knows who is, it returns a referral. RFC 9499 explains that an authoritative answer has the AA flag set to 1 in the header, while a referral to a child zone has AA set to 0 and carries the delegation data in the Authority and Additional sections. That is why delegation matters: the NS records at the parent zone are what let the resolver find your servers at all. Our NS record reference covers what those records contain.

Recursive versus iterative queries

The two terms describe the question style, not the server type. The pfSense documentation defines a recursive query as one where the answer is not local, so the resolver queries other servers. An iterative query asks a root or authoritative server for either an answer or a pointer, and the asker repeats until it has a final answer.

So your laptop sends a recursive query ("find the final answer for me") to the resolver. The resolver then sends iterative queries to root, TLD and authoritative servers. RFC 9499 adds that a recursive query is marked by the RD (recursion desired) bit, and the client can confirm recursion happened when both RA (recursion available) and RD are set in the reply. Authoritative-only servers do not offer recursion, so you will not see RA from them.

Client and resolver query paths with DNS flags

Caching and TTL: where most confusion comes from

A recursive resolver caches what it learns for the TTL (time to live) that the zone owner set on each record. Microsoft's DNS documentation notes that a Windows DNS server checks its authoritative zones first, then its cache, and only then uses recursion, and that its default minimum TTL comes from the zone's SOA record at 3,600 seconds (one hour).

The authors of RFC 9199 report a measurement in which raising a TLD's TTL from 5 minutes to 1 day cut median round-trip time from 28.7 ms to 8 ms. They recommend TTLs of at least an hour for general zone owners. Caching also helps users ride out short outages of authoritative servers.

What this means when you change a record

DNSimple's help article on recursive versus authoritative resolvers points out that after a change to a record or delegation, recursive caches keep serving old data until the TTL runs out. This is what people call "propagation". Nothing is being pushed around the internet; caches are simply expiring on their own schedule. Lower the TTL before a planned change, make the change, then raise it again. Our guide to DNS propagation and TTL math walks through the timing.

Failures are cached too. The isitdns wiki describes SERVFAIL behavior and notes that after you fix a problem, a resolver can keep answering SERVFAIL for a short time, between 1 second and 5 minutes, because failures are cached under RFC 9520.

What this means when you change a record

Can one server be both?

Yes. The ISC knowledge base says BIND can be configured as authoritative, recursive, or both. The usual pattern is that recursive servers answer for any zone, while authoritative servers serve a fixed set.

The risk is exposure. RFC 5358, as summarized by the Safeguard security team, recommends offering recursion only to intended clients, using source address lists, interface selection or signed queries. An outside test of a properly closed resolver should return REFUSED with no ra flag. A NOERROR answer with ra set means the resolver is open to anyone. Those flags are the same ones described by the standards, and reading them is how you tell what kind of server answered you. For background on why such response-handling and flags matter to security and compliance work, see this overview of NIS 2 requirements.

Separating the roles is common in larger setups. Split horizon DNS is one example, where internal and external clients get different authoritative answers.

Finding which side is failing

The method is to find the first layer that answers differently from the layer before it.

  1. Ask your resolver. dig example.com A. Look for the ra flag: an answer carrying it came from a recursive server, whatever the SERVER line says.
  2. Ask a different resolver. Use one you do not run. If it works there, your resolver's cache or policy is the problem.
  3. Ask the authoritative servers directly with recursion off. dig @ns1.example.com example.com A +norecurse. A good answer shows the aa flag. If this fails, the records or the server are at fault.
  4. Trace from the root. The TechCommune dig cheat sheet explains that dig +trace bypasses the local resolver and cache. If the trace works but a normal query fails, suspect the resolver. A trace also exposes wrong or lame delegations, where a listed name server does not answer.
  5. Test DNSSEC. If dig +cd succeeds where the plain query returns SERVFAIL, validation is the culprit, per the isitdns wiki.

SERVFAIL itself only says the server tried and failed. Extended DNS error codes, such as 22 for no reachable authority, can name the specific cause. For a longer command-by-command routine, see our DNS troubleshooting guide and the walkthrough on fixing a DNS misconfiguration.

A worked example

You move app.example.com to a new IP. Your colleague still reaches the old server an hour later. Querying the authoritative server with +norecurse returns the new address with aa set, so the zone is correct. The colleague's office resolver still returns the old address, so it is serving a cached copy until the TTL expires. Nothing to fix on your side except the TTL you chose beforehand. A record type mix-up is a different failure: see A vs CNAME records.

Where each role shows up in your daily work

  • Developers adding records edit the authoritative side, then watch caches expire.
  • IT and web administrators run or choose recursive resolvers for their networks and decide who may use them.
  • Marketers launching a campaign domain should set a low TTL a day ahead, so a landing page change is visible quickly.
  • Security-minded teams check the stub-to-resolver hop. The Safeguard post notes that this hop, often over Wi-Fi or an ISP network, is where encrypted DNS earns its keep, because the stub trusts its resolver completely.

DNS is also only one layer. Once the name resolves, the site still has to respond and its certificate has to be valid.

Promo: check what the name resolves to, then whether the site answers

Pingfloat is a free suite of web tools for developers and IT professionals. Our Traceroute shows the network path to a host, our Website Uptime Monitor watches whether a site stays available, and our SSL Checker verifies certificates. Core tools need no installation or account. The DNS reference pages cover record types, and the Pingfloat Public API is there for automation.

Pingfloat

Perspective

Most DNS pain comes from treating two systems as one. The authoritative side is yours: you write the records, you choose the TTL, you can verify it at any time. The recursive side belongs to everyone else, and all you can do is understand how it caches.

That is why we build tools around checking from the outside. A name that resolves is not a site that works, and a site that works is not a certificate that is valid. We want a developer or admin to see the whole chain, from the lookup to the response, in one place and without signing up for anything first.

When something breaks, ask which layer answered, and trust the flags more than the guess.

Andreas

FAQ

Is 8.8.8.8 authoritative or recursive?

It is a public recursive resolver. It answers your queries by asking authoritative servers and caching the results; it does not own your domain's records. The same applies to the resolver your ISP hands out.

Why do my DNS changes not show up right away?

Recursive resolvers keep the old answer until the record's TTL expires. The authoritative server returns the new data immediately, so querying it directly with +norecurse confirms your change is live.

Do root and TLD servers count as authoritative?

Yes, for their own zones. They answer with referrals pointing to the next level rather than final answers, as the Cloudflare and IBM walkthroughs of the lookup describe.

What does REFUSED mean from a DNS server?

It means the server will not answer that query. An authoritative-only server returns it for zones it does not host, and a closed resolver returns it to clients outside its allowed list.

Sources