Introduction to DNS
easy 25 minDNS is the distributed database that turns names such as www.example.com into addresses computers can connect to.
Remember it
The few things worth knowing cold, and how to make them stick.
Memory hook
Names for people, numbers for machines, DNS in between.
A village clerk with a book of names and house numbers. You keep the answer on a note, and the note is wrong after the neighbour moves.
Cheat sheet
- A
- name to IPv4
- AAAA
- name to IPv6
- CNAME
- name to another name
- MX
- mail server, lowest number first
- TXT
- SPF, DKIM, DMARC, proofs
- NS
- who runs the zone
- Root
- 13 names, 12 operators
- TTL
- 60 s failover, 1 h normal, 24 h stable
Spot it when you see
- Users far apart.
- A server address that may change.
- Customers with their own domains.
- Regional failover.
Tricks that stick
- DNS: Dial (look up), Names (domains), Seek (addresses).
- The journey: you, resolver, root, TLD, authoritative.
- CNAME is a nickname: a nickname points to a name, never to a number.
Do not forget
- Hard-coded addresses.
- Lowering the TTL at the moment of the change.
- A CNAME at the top of a zone.
- Calling round-robin DNS a load balancer.
- Forgetting the AAAA record.