ipaddress.tv IP lookup
Overview / Learning center
Home networking

How DNS turns a domain into an IP address

Follow a DNS question from a browser to a name server, choose the right record type, and work out when a cached answer expires.

Ask a specific question

Opening a bookmark starts with a name such as www.example.com. To reach a web server, your browser needs an address for that exact name. The Domain Name System, or DNS, can answer different questions about the same name. An A record supplies an IPv4 address. An AAAA record supplies an IPv6 address. An MX record identifies a mail server for a domain. IPv6 address records

This distinction matters when you investigate a problem. If someone says their website works but their incoming mail stopped arriving, an A record for the website does little to explain the mailbox. You need the mail domain and its MX answer. A subdomain such as www can also have different records from the name without www.

Follow the resolver

Your device asks a recursive resolver. It might belong to your internet provider, your employer, or a public DNS service. The resolver first looks for a recent answer it can reuse. For an unfamiliar name it can follow referrals, starting at the DNS root and continuing toward a name server responsible for the domain. That authoritative server publishes the domain’s records. DNS concepts and terminology

In the DNS lookup tool, enter a domain, select A, and run the lookup. Then repeat for AAAA. An empty AAAA result alongside a working A result can simply mean the operator published only an IPv4 address for that name. The website can still work for clients able to reach that address. Try the DNS lookup

Check your understanding

A resolver receives an address at 10:00 with a time to live of 300 seconds. The operator changes the address at 10:02. When would that original cache entry normally expire?

Show the answer

At 10:05, five minutes after the resolver received it. Up to then, the resolver can return the earlier address. A different resolver that first asks at 10:03 can already learn the new value. The two answers can briefly differ even when both resolvers are operating normally.