Course contentsShow
← Computer Science
Lesson 1506 of 2,87235. Application Layer ProtocolsFree lesson

DNS Record Types: NS, SOA, and TXT

Understanding NS records for nameserver delegation, SOA records for zone authority, and TXT records for arbitrary text data.

DNS Record Types: NS, SOA, and TXT

You'll learn: How three specialized DNS record types—NS, SOA, and TXT—handle delegation, authority, and arbitrary data storage.

The Three Administrative Record Types

Beyond mapping names to addresses, DNS needs records that handle who manages what, where authority starts, and general-purpose metadata. Three record types fill these roles.

NS (Nameserver) Records

NS records delegate responsibility for a domain to specific nameservers. Think of them as "forwarding addresses" that say: "If you want information about this subdomain, ask these servers instead."

For example, an NS record for example.com might point to ns1.example.com and ns2.example.com. When resolvers query anything under example.com, they know which nameservers hold the authoritative answers. This enables DNS's hierarchical delegation—the root servers use NS records to point to .com servers, which use NS records to point to domain-specific servers, and so on.

SOA (Start of Authority) Records

SOA records mark the beginning of a DNS zone and contain administrative metadata. Every zone has exactly one SOA record describing:

  • The primary nameserver for the zone
  • The email address of the zone administrator
  • A serial number (version tracking)
  • Refresh/retry/expire timers for secondary nameservers

Think of SOA as the "birth certificate" of a zone—it establishes who's officially in charge and how often secondary servers should synchronize.

TXT (Text) Records

TXT records store arbitrary text strings for any purpose. Originally intended for human-readable notes, they've become crucial for machine-readable verification:

  • Email authentication (SPF, DKIM records)
  • Domain ownership verification (for Google, SSL certificates)
  • Service configuration metadata

A TXT record is DNS's "catch-all drawer"—flexible storage for data that doesn't fit other record types.

Key Takeaway: NS records delegate nameserver authority, SOA records define zone ownership and sync parameters, and TXT records provide flexible text storage for verification and metadata.