Glossary

DNS

What is DNS?

DNS, the Domain Name System, is the directory of the internet. It turns a domain name such as example.com into the IP address of the server to connect to, and it answers other questions about the domain, such as which servers accept its mail. Every visit to your site and every email sent to your domain starts with a DNS lookup.

How it works

DNS is split across many servers, each responsible for one part of the name:

  1. Your device asks a recursive resolver, run by your internet provider, your company or a public service.
  2. If the resolver has no cached answer, it asks a root server, which refers it to the servers for the top-level domain, here .com.
  3. The .com servers refer it to the authoritative name servers for example.com, the ones listed in the domain's NS records.
  4. The authoritative server answers with the DNS record that was asked for.
resolver -> root -> .com -> ns1.example-dns.net -> example.com A 203.0.113.10

The resolver caches the answer for as long as the record's TTL allows, so most lookups are answered from cache and never reach your name servers.

Why it matters

When DNS fails, your site is unreachable even though the server behind it is healthy. The same goes for email, API subdomains and anything else on the domain. DNS is also where third parties look to confirm you own the domain: certificate authorities, mail providers and search consoles all read records from it. The name servers are set at your registrar, and the records live with your DNS provider, which is often a different company from your host.

What can go wrong

  • A record is changed or deleted by mistake during a migration or a provider switch, and traffic or mail goes somewhere else.
  • A cached old value: a change only reaches a visitor once their resolver's copy expires, so for a while different visitors get different answers.
  • The registrar still lists name servers at a DNS provider where the zone was deleted, so lookups fail even though the records exist elsewhere.
  • The domain registration lapses, and the domain can stop resolving altogether.

Check it

The DNS lookup queries the live DNS of any domain and lists its records grouped by type, each with its TTL. Ranetrace's DNS monitoring re-reads your records every hour and tells you when one changes.

Start monitoring today

Websites go down and code throws errors. Ranetrace tells you when it happens to yours, why it matters and what to do next.

Start your 30-day free trial From $9 a month. No credit card required.