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.

By Oxflare Engineering2 min read

Updated

Domain name search illustration

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

  1. Your device asks a recursive resolver, usually run by your ISP or a public service, for the address of www.example.com.
  2. If the resolver does not have the answer cached, it asks a root server, which points it to the servers for .com.
  3. The .com servers point it to the authoritative nameservers for example.com.
  4. 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

RecordWhat it doesExample
APoints a name to an IPv4 addressexample.com → 203.0.113.42
AAAAPoints a name to an IPv6 addressexample.com → 2001:db8::42
CNAMEMakes one name an alias of anotherwww → example.com
MXSays which servers receive email10 mail.example.com
TXTHolds text, used for verification and SPF, DKIM, DMARCv=spf1 include:... -all
NSLists the authoritative nameserversns1.example.net
CAALimits which authorities may issue SSL certificates0 issue "letsencrypt.org"
SRVAdvertises 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.

Related questions

Not answered here? Our team replies within one working day.

Ask a question
Why does my site work on one network but not another?

Different resolvers cached your old records at different times. Wait for the TTL to expire, or flush the cache on your device.

Put it into practice

Our team can set this up for you, or answer any questions.