DNS Lookup

What is DNS?

The system that turns domain names into IP addresses, the path a lookup takes and the most common record types.

DNS is one of the basic building blocks of the internet. It stands for Domain Name System.

Every device connected to the internet has an IP address. DNS translates memorable names like www.google.com into the IP addresses computers work with. It's the internet's phone book: you know the name, DNS finds the number.

When you type www.google.com into your browser, the request goes to DNS first. DNS tells the browser the IP address of Google's server (for example 142.250.187.110) and the browser connects to it in the background. All of this usually takes a few milliseconds.

The word DNS with domain name and IP address icons

How does a DNS lookup work?

The first time you visit example.co.uk, roughly these steps happen behind the scenes:

  1. Cache check. If your browser or operating system asked for this name recently, the answer comes from the cache and the lookup ends here.
  2. Ask the resolver. Your computer asks a DNS resolver: your ISP's, or one you chose yourself (such as 8.8.8.8 or 1.1.1.1).
  3. Root servers. If the resolver doesn't know the answer, it asks the root servers. They say which servers run the .uk extension.
  4. TLD servers. The .uk servers say which name servers hold example.co.uk. That information comes from the NS records you set at your domain registrar.
  5. Authoritative name server. Finally the resolver asks that name server and gets the actual record (for example the A record).
  6. Answer and cache. The resolver passes the answer back to you and keeps it in its cache for the record's TTL. The next user asking for the same name gets the answer straight from the cache.

What are the DNS record types?

A domain's DNS zone is made up of different record types. Each answers a different question:

RecordThe question it answers
AWhat is this name's IPv4 address? Decides which server your website loads from.
AAAAWhat is this name's IPv6 address?
CNAMEWhich other name is this name an alias of? For example www.example.com → example.com.
MXWhich server should email for this domain be delivered to?
NSWhich servers publish this domain's records?
TXTFree text. SPF, DKIM, DMARC and service verification codes live here.
SOAWho owns the zone, what's its serial number, and how often should secondary servers refresh?
PTRWhich name does this IP address belong to? (Reverse record)
CAAWhich certificate authorities may issue SSL certificates for this domain?
SRVOn which server and port does a specific service (SIP, XMPP, Microsoft Teams) run?

TTL and propagation

Every DNS record has a TTL (Time To Live). It tells resolvers how many seconds they may keep the record in their cache. A value of 3600 means the record is reused for an hour without being asked again.

That's what the wait people call "DNS propagation" really is: when you change a record, the new value is published immediately, but resolvers that cached the old value keep using it until the TTL runs out. That's why some users see a change right away and others hours later.

If you're about to change a record (when moving servers, say), lower its TTL to 300 seconds a day in advance. You can raise it again after the change.

Name server changes depend on the TTL of the records in the parent zone (.com, .de) and usually take anywhere from a few hours to 48 hours.

How do you create a DNS record?

DNS records are added in the DNS management section of whichever panel runs your domain's name servers. Your name servers decide which panel that is:

  • If your name servers point to your hosting company (for example ns1.hostingcompany.com), you edit records in your hosting panel (cPanel, Plesk, DirectAdmin).
  • If they point to Cloudflare (xxx.ns.cloudflare.com), you edit them in the Cloudflare dashboard.
  • If they're your registrar's default name servers, you edit them in the registrar's DNS management.

A change made in the wrong panel has no effect at all; it's the most common cause of "I added the record but it doesn't show up". To find your name servers, look up your domain and check the NS rows.

Common DNS problems

SymptomLikely cause
I changed the record but still see the old valueThe TTL hasn't expired, or the change was made in a panel your name servers don't use.
The site loads for some users but not othersPropagation is still in progress, or one of several A records points to an old server.
"Server not found" (NXDOMAIN)The domain has expired, the name servers are wrong, or the record was never added.
Some resolvers return SERVFAILThe name servers aren't answering, or the DNSSEC chain is broken.
Email doesn't arriveThe MX record is missing or still points to the old email provider.
Outgoing mail lands in spamSPF, DKIM or DMARC is missing or wrong.

When you look up your domain with our DNS lookup tool, most of these problems are listed with their cause in the "DNS health" panel. The resolver comparison shows whether a change has reached Google, Cloudflare, Quad9 and AdGuard.