Domains
How DNS works: records, resolvers and propagation explained
A clear explanation of the Domain Name System: how lookups work, what each record type does, what TTL means and why changes take time to spread.
Updated
The Domain Name System is the internet's directory. It turns names people can remember into the numeric IP addresses computers use. Without it you would need to type something like 203.0.113.42 to visit a website.
What happens when you type a domain
- Your device asks a recursive resolver, usually run by your ISP or a public service, for the address of www.example.com.
- If the resolver does not have the answer cached, it asks a root server, which points it to the servers for .com.
- The .com servers point it to the authoritative nameservers for example.com.
- The authoritative nameserver returns the record, and the resolver caches it for the time set by the record's TTL.
All of this usually takes a few milliseconds, and most lookups are answered from cache.
Common record types
| Record | What it does | Example |
|---|---|---|
| A | Points a name to an IPv4 address | example.com → 203.0.113.42 |
| AAAA | Points a name to an IPv6 address | example.com → 2001:db8::42 |
| CNAME | Makes one name an alias of another | www → example.com |
| MX | Says which servers receive email | 10 mail.example.com |
| TXT | Holds text, used for verification and SPF, DKIM, DMARC | v=spf1 include:... -all |
| NS | Lists the authoritative nameservers | ns1.example.net |
| CAA | Limits which authorities may issue SSL certificates | 0 issue "letsencrypt.org" |
| SRV | Advertises services such as SIP or XMPP | _sip._tcp |
TTL and "propagation"
Every record has a time to live (TTL) in seconds. Resolvers cache the answer for that long. When you change a record, resolvers that cached the old answer keep using it until the TTL expires. That delay is what people call propagation. To make a planned change quick, lower the TTL to 300 seconds a day before, make the change, then raise it again.
Changing nameservers
Changing which nameservers are authoritative for your domain is done at your registrar, and the parent zone (for example .com) caches NS records for longer, often up to 48 hours. Plan nameserver moves outside busy periods.
DNSSEC
DNSSEC adds cryptographic signatures to DNS answers so resolvers can detect forged responses. Enable it at your DNS host and publish the DS record at your registrar. With Oxflare, both happen with one switch when we host your DNS and register your domain.
