Networking

DNS Lookup Explained: A Beginner-Friendly Guide

DNS is the internet's phonebook. Every time you visit a site, your device performs a lookup to convert the domain into an IP address. Here's how it works — and what each record type actually means.

DNS Lookup Explained — A, MX, TXT, NS Records (Plain English) · Understand what a DNS lookup is, what each record type means, and how to read DNS results. Includes an in-browser DNS lookup tool. · /dns-lookup-explained

How a DNS lookup actually works

When you type a domain into your browser, this sequence happens in roughly 50–200 ms:

  1. Your browser checks its own cache. Hit? Done.
  2. Your operating system checks its resolver cache.
  3. Your configured resolver (often your ISP, or 1.1.1.1 / 8.8.8.8) checks its cache.
  4. If still missing, it queries the root nameservers, then the TLD (.com) servers, then the domain's authoritative nameservers.
  5. The IP address is returned and cached at every level for the record's TTL.

The record types you'll actually encounter

  • A — maps a domain to an IPv4 address. The most common record.
  • AAAA — same as A but for IPv6.
  • CNAME — an alias pointing one domain to another. Often used for subdomains pointing at SaaS providers.
  • MX — mail exchange records. Tells the world which server accepts email for the domain.
  • TXT — arbitrary text. Used for SPF, DKIM, DMARC, and domain verification by Google, Stripe, etc.
  • NS — declares the authoritative nameservers for the domain.

Reading DNS results without confusion

Each result has three things you care about: the value (the IP or target), the TTL (cache duration in seconds), and the type. If you query an A record and see an empty answer, the domain doesn't have one — it might only have AAAA or CNAME. Always query the specific type you need rather than relying on a single check.

Recommended next steps

Diagnostic workflow

  1. 1
    Look up the A record

    Confirm the domain resolves to an IPv4 address you recognize.

    DNS Lookup
  2. 2
    Verify TXT records

    Check SPF/DKIM/DMARC entries for email deliverability.

    Check TXT
  3. 3
    Confirm the IP responds

    Use Server Status to verify the resolved IP actually serves traffic.

    Server Status
  4. 4
    Measure resolver latency

    Slow DNS hurts every page load. Test your resolver's response time.

    DNS Speed Test

Frequently asked questions

What is a DNS lookup, in one sentence?

It's the process of asking a name server to translate a human-readable domain (example.com) into a machine address (an IP) that browsers can connect to.

What's the difference between an A and AAAA record?

A records map a domain to an IPv4 address (the classic 192.0.2.1 format). AAAA records do the same for IPv6 addresses (the longer hexadecimal format).

Why does my domain have multiple A records?

Multiple A records enable simple DNS-level load balancing. Resolvers return them in rotating order so traffic is distributed across origin servers.

What is TTL?

Time-To-Live is how many seconds resolvers should cache the record before re-querying. Lower TTL means changes propagate faster but increases query volume.

What's the difference between a DNS lookup and a WHOIS lookup?

A DNS lookup retrieves technical routing records. WHOIS retrieves the domain's registration metadata — owner, registrar, expiry date.

Continue reading

Educational guide. Diagnostic checks run entirely in your browser.