Domain IP Lookup

Enter a domain or paste a URL to see every IPv4 and IPv6 address it resolves to. Each address comes with its TTL, its reverse DNS name and the organization that holds the network, so you can tell straight away whether a site sits on your own server, a cloud host or a CDN. If the name is an alias, the CNAME chain shows how it gets to those addresses.

Enter a domain to find its IP addresses

Reading the result

The organization comes from the registry record for the block the address belongs to, so it names whoever holds that network. For a site on shared hosting or a cloud platform, that is the provider and not the site's owner. The country is where the network is registered, which can differ from where the server stands, and registries such as ARIN usually leave it out.

When the IP is not the real server

A site behind Cloudflare, Fastly, CloudFront or a similar service publishes the provider's edge addresses, and the origin server stays hidden on purpose. These hosts can also answer with different addresses by region, so the list here may not match what you see on your own machine.

How to use the Domain IP Lookup (Domain to IP Address) tool

  1. Type a domain such as example.com or paste a full URL and click Find IP. The scheme, port, path and query are removed for you, and a subdomain is looked up exactly as you typed it.
  2. The tool asks a public resolver over DNS-over-HTTPS for the domain's A and AAAA records. Cloudflare answers first, and Google takes over if Cloudflare cannot be reached.
  3. Read the summary box. It gives the number of addresses and, if the name is an alias, the CNAME chain from the name you entered to the host that holds the addresses.
  4. Each row shows one address with its TTL, the organization holding the network, the network's range and its reverse DNS name. WHOIS opens the full registry record for that address.
  5. Click Copy IPs to copy the whole list, one address per line, for a firewall rule or an allowlist.

How to find the IP address of a domain in code

dig

# IPv4 and IPv6 addresses (+short also prints any CNAME targets)
dig +short example.com A
dig +short example.com AAAA

# From an address back to a name, then to the network's owner
dig +short -x 8.8.8.8
whois 8.8.8.8

On Windows, nslookup example.com and nslookup 8.8.8.8 do the same job.

JavaScript (Node.js)

import { resolve4, resolve6, reverse } from "node:dns/promises";

const domain = "example.com";

// A name with no record of that type rejects, so fall back to an empty list
const v4 = await resolve4(domain, { ttl: true }).catch(() => []);
const v6 = await resolve6(domain, { ttl: true }).catch(() => []);

for (const { address, ttl } of [...v4, ...v6]) {
    const names = await reverse(address).catch(() => []);
    console.log(address, "ttl", ttl, names);
}

Python

import socket

infos = socket.getaddrinfo("example.com", None, proto=socket.IPPROTO_TCP)

for ip in sorted({info[4][0] for info in infos}):
    try:
        name = socket.gethostbyaddr(ip)[0]
    except socket.herror:
        name = None
    print(ip, name)

getaddrinfo uses the operating system's resolver, so it also reads the hosts file and any local DNS cache.

Common errors and how to fix them

The domain does not exist (NXDOMAIN)
The name is misspelled, was never registered, or has expired. Check it with the WHOIS lookup. For a record you just created, check the exact name at your DNS host, since a resolver can cache the earlier negative answer for a while.
The domain exists but has no IP address
The name has no A or AAAA record. Some root domains only handle email, or the site is on www. Try the www subdomain, and add an A record at your DNS host if the root should serve the site too.
A CNAME points to a name with no IP address
The alias still exists but its target has no address, which often happens after a hosted service is cancelled. Update or delete the CNAME. A dangling alias is also a security risk, because someone else may be able to claim the target and serve content on your subdomain.
The IP belongs to Cloudflare instead of my host
The record is proxied, so visitors connect to the CDN and it forwards requests to your server. This is expected. Your origin address is in your DNS host's dashboard or your hosting panel, and DNS will not reveal it.
The domain resolves to 127.0.0.1 or 192.168.x.x
A private address only works inside its own network, so outside visitors cannot reach it. It is usually a mistaken record or an internal name published in public DNS. Replace it with the server's public address.

Specifications and references

This tool follows the specifications below. Read them when you need the exact normative wording, for example to settle an edge case between two implementations.

Frequently Asked Questions

How do I find the IP address of a domain?

Enter the domain or paste a URL above and click Find IP. The tool asks a public DNS resolver for the domain's A records (IPv4) and AAAA records (IPv6) and lists every address. From a terminal, dig +short example.com or nslookup example.com gives the same addresses.

Why does a domain have more than one IP address?

To share traffic and to survive a server failure. Clients pick from the list and can try another address if the first one fails. Large sites also rotate the list between answers, and a domain with both IPv4 and IPv6 has separate addresses for each.

Is this the IP address of the real server?

Not when the site is behind a CDN or reverse proxy such as Cloudflare, Fastly or CloudFront. DNS then returns the provider's edge addresses and the origin server stays hidden. If the organization shown is a CDN, that is what you are looking at.

Why do I get a different IP than on my own computer?

CDN and GeoDNS hosts answer based on where the question comes from, and some rotate through a pool on every query. Your computer may also be using a cached answer until its TTL expires. The DNS propagation checker shows how twelve resolvers answer at the same moment.

Does this show where the server is located?

Only roughly. The country comes from the registry record for the network, so it tells you where the block is registered and not where the machine stands. A company registered in one country can run servers in many others, and ARIN records usually have no country at all.

What is reverse DNS, and why does it not match the domain?

Reverse DNS is a PTR record that maps an IP address back to a name. The owner of the IP sets it, not the owner of the domain, so on shared hosting or a cloud platform it shows a provider name such as a server hostname. That is normal for websites. It matters mostly for mail servers, where a missing or mismatched PTR hurts delivery.

Related

Compare the same record across twelve resolvers with the DNS propagation checker, see the full registration of a domain or IP with the WHOIS lookup, or test whether the site responds with the website down checker.

More URL Tools

Browse all url tools

Copied to clipboard!