DNS for Domain Owners: A Free Web Book in Four Chapters
Owning a domain means owning a small piece of the Domain Name System, even if you never think about it. This free web book explains, in four chapters, the records most owners will meet in a registrar or DNS control panel. It is written for readers who are not engineers and who mainly want to understand what a support agent or a hosting company is asking them to change.
Chapter 1: Nameservers decide who answers
Every domain has a set of NS records that point to its authoritative nameservers. These are the servers that answer questions about the domain. The registrar passes this list to the registry, and the rest of the internet follows it. If the nameservers are the registrar's own, the records are edited in the registrar's panel. If they belong to a hosting company or a separate DNS provider, the records live there instead, and changes made at the registrar will have no effect.
This one fact explains a large share of "my change didn't work" problems. Before editing anything, find out which nameservers the domain is using. A public lookup through ICANN's lookup service or the dig command will show them.
Chapter 2: The records that point to things
A and AAAA
An A record maps a name to an IPv4 address; an AAAA record does the same for an IPv6 address. A website host usually gives you one or both. The DNS standards themselves date back to RFC 1034 and RFC 1035, published in 1987; AAAA records were added later for IPv6.
CNAME
A CNAME says "this name is an alias for that other name". It is common for www or for services hosted by a third party. A CNAME cannot sit alongside other records with the same name, which is why most panels refuse to put one at the bare domain itself.
MX
MX records name the servers that accept email for the domain, each with a priority number. Lower numbers are tried first. Moving email to a new provider is mostly a matter of replacing these records with the ones the provider supplies.
Chapter 3: TXT records and email authentication
TXT records hold free-form text. Many services use them to prove that you control a domain: you paste a string they give you, and they check for it. TXT records also carry the three main email authentication mechanisms:
- SPF lists the servers allowed to send mail for the domain.
- DKIM publishes a public key so receivers can check a signature added to each message.
- DMARC tells receivers what to do when SPF or DKIM checks fail and where to send reports.
Large mailbox providers have tightened their requirements for bulk senders in recent years, so a domain that sends newsletters or invoices without these records may find its mail filtered. Even a domain that sends no email at all can publish a strict SPF and DMARC policy to make spoofing it harder.
Chapter 4: TTL, changes and moving providers
Each record carries a time-to-live, a number of seconds that tells resolvers how long they may cache the answer. A long TTL means fewer lookups but slower changes; a short TTL means changes spread faster. When a move is planned, lowering the TTL a day or two in advance and raising it afterwards is a common, low-risk habit.
The most important fine-print point for owners concerns moving away from registrar DNS. If the registrar hosts your records and you transfer the domain elsewhere, or cancel a bundled plan, the records may stop being served. Before any transfer, export or copy every record, set them up at the new provider, and switch nameservers only when the new copy is complete. A domain that resolves correctly the day after a move is the result of that preparation, not of luck.
Checklist for this book
- Know which nameservers you use.
- Keep a plain-text copy of every record.
- Publish SPF and DMARC, even for non-sending domains.
- Lower TTLs before planned changes.
Sources
- IETF, RFC 1034 and RFC 1035 (Domain Name System)
- IETF, RFC 7208 (SPF), RFC 6376 (DKIM) and RFC 7489 (DMARC)
- ICANN, Lookup service and registrant education materials