Two addressing schemes, running side by side
IPv4
192.0.2.10
32 bits -- ~4.3 billion addresses -- exhausted
IPv6
2606:4700::6810:84e5
128 bits -- 340 undecillion addresses
How to Find a Domain's IP Address Using DNS
To find a domain's IP address, resolve its DNS records rather than guessing from a website's hosting brand or copying an address from an unrelated page. DNS can publish an A record for IPv4 and an AAAA record for IPv6, and those answers are independent. A domain may return one address, several addresses, only one address family, or a CNAME alias that leads to another hostname. The right result is the public DNS answer visible to the resolver you queried at that time. It may represent a CDN or load balancer and should not automatically be described as the origin server's address.
Use a lookup for the exact hostname
Start by identifying whether you need the apex domain, such as example.com, or a subdomain such as www.example.com. DNS treats them as distinct names, so they can have different record configurations. Use a domain-to-IP lookup tool, a DNS utility supplied by your operating system, or a command-line query to ask for A and AAAA data. If you have a URL like https://www.example.com/products, the hostname is www.example.com; the protocol, path, and page name are not part of the DNS query. Avoid including credentials or private URLs in any public lookup form.
| DNS result | Interpretation |
|---|---|
| A | One or more IPv4 addresses |
| AAAA | One or more IPv6 addresses |
| CNAME | An alias; resolve its target to continue |
| No AAAA answer | No IPv6 data for that name in this response |
| NXDOMAIN | The queried hostname was reported as nonexistent |
If the answer contains multiple addresses, that does not normally indicate a mistake. Large services use multiple servers for availability, load distribution, and content delivery. A resolver can also return a subset or a different order over time. When you compare answers, include the resolver and timestamp; two observations without that context can look contradictory even when both were valid. A DNS address tells you where a client may attempt to connect after resolution, not whether the service is healthy or whether the address will stay unchanged. Websites can change records during migrations, failover, or routine infrastructure maintenance.
When a name resolves through an alias
A CNAME record says that one DNS name is an alias for another name. The first answer is not itself an IP address; the resolver follows the alias and queries the target's address records. This indirection lets a hosting provider manage changing infrastructure behind a stable hostname. It also means that a CNAME target's DNS configuration matters to the final result. A checker that only shows the initial alias may appear to provide no address, even though the resolution chain eventually produces A or AAAA records. Trace the chain deliberately rather than treating the alias as a failed lookup.
- Query A and AAAA independently; one can exist without the other.
- Record the target hostname if a CNAME is present.
- Compare against authoritative nameservers when cached answers are in question.
- Do not assume DNS points directly to a physical server or origin.
- For a service failure, test network reachability and HTTPS separately from DNS.
Use the address carefully
A resolved address is not a permanent identity. IPs can be reassigned, anycast addresses can route to different facilities, and shared hosting can place many domains behind the same address. Likewise, seeing a cloud or CDN provider's IP does not establish where the origin application runs. If you are updating a firewall allowlist or an integration, verify the provider's documented address ranges and change process instead of copying a one-time lookup result. For general troubleshooting, the domain-to-IP lookup can show public IPv4 and IPv6 answers, while how to find a website IP covers related methods and their limitations.
The key is to match the lookup to your purpose. A developer debugging a new DNS record needs the exact hostname and record type. A site owner checking a migration needs a before-and-after comparison and awareness of TTL caching. A visitor diagnosing an outage needs to distinguish resolution from connectivity and application response. Those are related but separate questions, and a single IP result cannot answer all of them. Treat DNS as one layer in the path from a name to a working service, then test the next layer that corresponds to the observed failure.
When a domain lookup is not enough
Some jobs require information beyond the public address answer. A firewall change may need an official cloud-provider range rather than a single DNS response, because the provider can rotate or expand endpoints. An application outage may require an HTTPS request, certificate inspection, or hosting dashboard check after resolution succeeds. To go the other way and find a domain name from an IP address, a reverse lookup can sometimes return a PTR name for the address, but it is controlled by the address operator, may be absent or generic, and will not list every domain that shares the address. Decide what you need before using the result: current DNS mapping, network owner, approximate location, or actual service health each calls for a different source. State conclusions narrowly and include the resolver and time. That wording is especially helpful when a domain uses a CDN, since the edge address is a public entry point and not necessarily the backend that generates the site's content.
Need to check a domain's public DNS addresses? Use the Domain IP Lookup tool.
Free tools for this topic
Related reading
Every IPv4 range has an IPv6 equivalent
How to Check a Domain's IPv6 Address (AAAA Record)
Check a domain's AAAA record, distinguish IPv6 DNS publication from IPv6 connectivity, and troubleshoot common dual-stack configuration gaps.
What is actually behind the address you resolved
Shared IP
Many sites on one address -- the Host header picks yours
Dedicated IP
Only you -- you control its reverse DNS
CDN edge
Not the origin -- the edge terminates the connection
Host IP Lookup: Find a Website's Hosting IP Address
Find the hosting IP address of a website, tell hosting from CDN endpoints, and learn what reverse DNS can and cannot tell you about the host behind an IP address.
How an email finds your mail server
Sender
you@gmail.com
MX lookup
who takes mail?
Mail server
priority 10 first
Inbox
delivered
Lowest priority number wins; higher numbers are backups
Email DNS Records Explained: MX, SPF, DKIM and DMARC
A practical guide to the DNS records email depends on, how routing and authentication work together, and what to verify after a mail migration.