Skip to content
Web Design & Development

A Practical Guide to Domain Names and DNS

The system that turns a domain name into the servers behind it, through records such as A, AAAA, CNAME, MX and TXT held at a DNS provider.

Marcus Adeyemi Technical Director 2 min read 21 views
A Practical Guide to Domain Names and DNS

The key figures

A and AAAA records
point a name at an IPv4 or IPv6 address
CNAME record
points one name at another; the DNS standard does not allow it at the zone apex
MX records
direct the domain's email to mail servers
TXT records
hold verification strings and email authentication data such as SPF
TTL
how long resolvers may cache a record before asking again

Why this is worth getting right

DNS mistakes take whole sites and mailboxes offline, and during a migration they are the step most often done at the wrong moment or forgotten.

Do this, not that

Do

  • Lower TTLs a day or two before planned changes
  • Save a copy of every record before editing the zone
  • Check email records whenever the web host or nameservers change
  • Protect the registrar account with two-factor sign-in and a transfer lock
  • Keep auto-renew on and track renewal dates

Don’t

  • Moving nameservers without recreating the email records
  • Letting a domain lapse because the card on file expired
  • Leaving the domain in a former employee's or agency's account
  • Changing records at the start of a busy trading day

When to bring in help

Our advice Bring in help before moving nameservers or hosting, when email stops arriving after a change, or when nobody on the team can access the registrar account.

Where this comes from

The figures and practices above come from the sources listed.

Working on something like this?

We take on Web Design & Development work for teams who want it done once, properly. Tell us what you are building and we will tell you honestly whether we are the right studio for it. Start a project.

Where to go next

Spotted something wrong? Report an error on this page. We correct on the page and say what changed.

All services

The work behind this article, and what it costs.

Marcus Adeyemi

Builds and maintains the web work. Writes about front-end architecture, performance, accessibility and the unglamorous parts of keeping a site alive.

Keep reading

More in Web Design & Development