What Is a DNS Lookup?

A DNS lookup is the process of translating a human-readable domain name (like example.com) into the numeric IP address a computer actually needs to connect t...

Published November 18, 2026

A DNS lookup translates a domain name like example.com into an IP address, so your browser knows which server to contact. It is a recursive question asked through resolvers, root, TLD and authoritative servers.

The concept

Your device asks a recursive resolver (ISP, 8.8.8.8). If not cached, the resolver asks a root server, then the .com server, then the domain's authoritative name server, and returns the answer.

Answers are cached for their TTL. Record types include A (IPv4), AAAA (IPv6), CNAME, MX, TXT and NS.

Resolution chain

  1. Browser asks the resolver for example.com
  2. Resolver asks the root server → points to .com servers
  3. Asks the .com server → points to example.com's name server
  4. Authoritative server returns the IP; the resolver caches it

Practical examples

Look up records

dig example.com A +short
dig example.com MX
nslookup example.com

Ask a specific resolver

dig @1.1.1.1 example.com

Trace the whole chain

dig +trace example.com

Try it here

The DNS Lookup tool on this site queries records for any domain.

https://devstudioonline.com/dns-lookup

Common mistakes

  • Expecting DNS changes to be instant (TTL caching).
  • Mixing up A and CNAME records.
  • Forgetting local hosts-file overrides.

Key takeaways

  • Domain → IP translation.
  • Cached by TTL.
  • dig +trace shows each step.

FAQ

What is a TTL?

How long, in seconds, a record may be cached.

Why is DNS slow sometimes?

Uncached lookups require several network round trips.

More General articles