THE FUNDAMENTALS

What Is DNS? How Domain Names Resolve to IP Addresses

Learn how DNS resolution works, which server answers a lookup and how to choose A, MX, NS or TXT checks when troubleshooting a domain.

DNS, the Domain Name System, lets applications look up information about a domain name, including IP addresses and mail routes. A browser can ask for the addresses behind example.com; a sending mail system can ask where that domain receives email. DNS is distributed, with different organizations responsible for different parts of the namespace.

A lookup has several participants

Your device usually asks a recursive resolver to find an answer. That resolver might be operated by your network provider, Google, Cloudflare or another organization. If the resolver already has a usable cached answer, it can return it without asking the domain’s servers again.

If it needs fresh information, the resolver can follow delegations through the DNS hierarchy. Root servers point toward the servers for a top-level domain such as .com. Those servers identify the domain’s authoritative name servers. An authoritative server publishes records for the zone it manages. See nameservers versus DNS records if you are deciding which part of a configuration to change. The resolver obtains the requested information and can cache it for later queries.

These steps are a useful model, not a promise that every lookup contacts all those servers. Cached delegations and records often shorten the process. A CNAME can also lead the resolver to a different name before it obtains an address.

A domain is not the same as a URL

In https://www.example.com/account?view=compact, the hostname is www.example.com. The scheme, path and query are web concepts; DNS does not look up the /account page. This checker extracts the hostname from a complete HTTP or HTTPS URL before making a request.

The apex name example.com and the subdomain www.example.com are separate names. They can have different records. If a website works at one but not the other, inspect both. Internationalized domain names are converted to an ASCII representation for queries; your original input remains attached to the results.

Record types answer different questions

An A lookup asks for IPv4 addresses. AAAA asks for IPv6 addresses. MX describes incoming mail routing. NS identifies published name servers, TXT carries text, and CNAME describes an alias. Asking for the wrong type can produce an empty answer even when the name is perfectly valid.

For example, an apex domain may have MX records while its www subdomain has a CNAME. The absence of an MX record at www says little about mail sent to an address at the apex. Use the record type reference to choose the question you actually need answered.

Read status and TTL together

NOERROR with records means the resolver returned the requested type. NOERROR without that type means no matching records were returned; this is often called NODATA. NXDOMAIN means the queried name does not exist according to that resolver. SERVFAIL means resolution failed, potentially because of an authoritative server or DNSSEC issue.

TTL is the cache lifetime, in seconds, associated with a record. A recursive resolver commonly returns the remaining lifetime of its cached answer. It is not the age of the domain, the time a change was made, or a guarantee that every client will refresh simultaneously.

How to check which IP address a domain resolves to

Open the Bulk DNS Checker, enter the exact website hostname and select A and AAAA. Query the apex and www names separately when both are used. Keep the returned address, resolver and lookup time together so you can compare a later result without confusing two different hostnames or cached views.

For nameserver changes, use the NS comparison tool instead of treating an address answer as evidence about delegation. For incoming email, start with MX routing, which answers a different question from the website’s A record.

What this checker can tell you

DNSBatch sends DNS-over-HTTPS queries from your browser to the selected public resolver. It gives you that resolver’s view of each name and type. It does not test whether a web server is reachable, whether a mailbox exists, or whether a domain is available to register. Split-horizon or internal DNS can also differ from public results.

Start with one known domain, select A, then add the record types relevant to your task. If an answer looks unexpected, check the exact name and compare another resolver before making changes.

For protocol background, see the DNS concepts in RFC 1034 and implementation details in RFC 1035.