Types of DNS servers
Name servers are where DNS answers actually come from. This topic covers the server roles (authoritative, recursive, forwarding), how zones are delegated from the root down through NS and glue records, every field of the SOA — Start of Authority — record, primary/secondary replication with zone transfers, and how Route 53 fits in: its four name servers, registrar updates, subdomain delegation across accounts, and multi-provider resilience. Interviewers often ask about the SOA record specifically — expect to explain each field and how it's used.
Authoritative servers
An authoritative name server holds the actual records for a zone and gives definitive answers for it. Responses carry the aa (authoritative answer) flag. It doesn't look anything up on anyone's behalf: ask it about a zone it doesn't host and it refuses or returns a referral.
Examples: Route 53 hosted zones, Cloudflare DNS, NS1, Azure DNS, Google Cloud DNS, and self-hosted BIND, PowerDNS, NSD, Knot.
Recursive resolvers
A recursive resolver answers clients' questions by doing the full lookup — root → TLD → authoritative — then caches results for their TTL. Examples: your ISP's resolvers, 8.8.8.8 (Google), 1.1.1.1 (Cloudflare), 9.9.9.9 (Quad9), the Route 53 Resolver in every VPC (base + 2), CoreDNS in Kubernetes (which forwards upstream), Unbound, systemd-resolved (a caching stub).
A client query sets the rd (recursion desired) flag; a recursive server replies with ra (recursion available).
Forwarders and stubs
- A stub resolver is the DNS client in your OS (glibc's resolver reading
/etc/resolv.conf). It sends recursive queries to a configured resolver and doesn't recurse itself. - A forwarder passes queries to another resolver instead of recursing itself — e.g. Route 53 Resolver outbound endpoints forwarding
corp.localto on-prem DNS, or CoreDNS forwarding non-cluster names to the VPC resolver. Conditional forwarding forwards only certain domains.
Comparison
| Authoritative | Recursive | |
|---|---|---|
| Holds zone data | Yes | No (only cache) |
| Answers for | Its own zones | Anything |
| Does lookups for clients | No | Yes |
| Caches | No (source of truth) | Yes |
| Flag in answers | aa |
ra |
| Should be open to the internet | Yes (for public zones) | No — open resolvers are abused for amplification DDoS |