DocumentationDNS & Resolution

What is a DNS Lookup? Querying Domain Records

Learn how to perform DNS lookups, the difference between forward and reverse lookups, and how to read the output.

Key Takeaways

  • A DNS lookup retrieves the routing records associated with a domain.
  • Forward lookups resolve domains to IPs; Reverse lookups resolve IPs to domains.
  • Command-line tools like nslookup and dig are standard for manual lookups.

Forward DNS Lookup

A forward DNS lookup is the most common query type. It asks the question: "What is the IP address associated with this domain name?" Every time you type a URL into a browser, your computer performs a forward DNS lookup automatically.

Reverse DNS Lookup (rDNS)

A reverse DNS lookup asks the opposite: "What domain name is associated with this IP address?" This is heavily used in email infrastructure. Mail servers perform reverse lookups on the sending IP to verify that it matches the claimed domain, helping to prevent spam and spoofing.

Command Line Tools

System administrators manually perform lookups using terminal utilities. On Windows, nslookup is the standard tool. On Linux and macOS, dig (Domain Information Groper) is the preferred utility due to its highly detailed, unformatted output of the entire DNS response.

Frequently Asked Questions

Why does my DNS lookup fail?

Failures can occur if the domain has expired, the authoritative nameservers are offline, or if you have a typo in the domain name. It can also happen if your local DNS cache is corrupted.

Supported By

Sponsor Banner