Authoritative Nameserver

Protocols & Standards
A DNS server that holds the definitive records for a domain and answers queries with authoritative data.
← Back to Glossary

What is an Authoritative Nameserver?

An Authoritative Nameserver is a DNS server that contains the original, definitive zone data for a domain and provides official, authoritative answers to DNS queries rather than cached or referred responses.

How Authoritative Nameservers Work

DNS Query Resolution:

1. Client queries recursive resolver

2. Resolver finds authoritative NS for domain

3. Authoritative NS returns definitive answer

Query: "What is the A record for www.example.com?"

Recursive Resolver → Authoritative NS (ns1.example.com)

← Response: 192.0.2.1

Flags: aa (Authoritative Answer)

Authoritative vs Recursive Servers

FeatureAuthoritative NSRecursive Resolver
Data sourceZone files (original)Cache (copies)
Query handlingOnly for owned zonesAny domain
Response flagAA (Authoritative)No AA flag
PurposeHost domain recordsResolve queries
CachingNo (serves zone data)Yes (caches answers)

Types of Authoritative Servers

TypeRoleDescription
Primary (Master)Source of truthHolds writable zone file
Secondary (Slave)Redundant copyReceives zone transfers
Hidden PrimarySecurityPrimary not in NS records

Zone Transfer Process

Primary → Secondary Synchronization:

Primary NS Secondary NS

│ │

│◄──── SOA Query ──────────────│

│ │

│─────── SOA Response ────────►│ (Check serial)

│ │

│◄──── AXFR Request ───────────│ (Full transfer)

│ or IXFR (incremental) │

│ │

│─────── Zone Data ───────────►│

│ │

Common Authoritative DNS Providers

ProviderTypeFeatures
CloudflareManagedFree tier, DDoS protection
AWS Route 53ManagedGlobal anycast, health checks
Google Cloud DNSManagedLow latency, DNSSEC
BINDSelf-hostedOpen source, full control
PowerDNSSelf-hostedAPI-driven, database backend

NS Record Configuration

Zone file entries for authoritative servers:

example.com. IN NS ns1.example.com.

example.com. IN NS ns2.example.com.

ns1.example.com. IN A 192.0.2.1 (glue record)

ns2.example.com. IN A 192.0.2.2 (glue record)

Checking Authoritative Servers

# Find authoritative nameservers for a domain

dig example.com NS +short

# Query specific authoritative server directly

dig @ns1.example.com example.com A

# Verify authoritative flag in response

dig example.com A | grep flags

;; flags: qr aa rd ← 'aa' indicates authoritative answer

Best Practices

1. Use multiple nameservers: Minimum 2, preferably geographically distributed

2. Different networks: Place secondary NS on separate network/provider

3. Monitor availability: Track nameserver uptime and response times

4. Secure zone transfers: Restrict AXFR to authorized IPs

5. Enable DNSSEC: Sign zones to prevent spoofing

High Availability Architecture

Recommended Setup:

Primary NS (hidden)

├──► Secondary NS 1 (public, Provider A)

├──► Secondary NS 2 (public, Provider B)

└──► Secondary NS 3 (public, Provider C)

All three public NS listed in zone's NS records

Authoritative nameservers are the foundation of domain DNS, serving as the definitive source for all DNS records associated with a domain.

Put This Knowledge to Work

Use DomScan's API to check domain availability, health, and more.