Domain to IP
Convert any domain or URL to its IP addresses, IPv4 and IPv6, and see what a plain lookup hides: the CNAME chain behind the name, the network that owns each address, whether a CDN stands in front of the real server, and what five public DNS resolvers answer.
How to find the IP address of a website
Type the website's domain, or paste any URL, and press Find IP. Domain to IP asks DNS for the name's A records (IPv4 addresses) and AAAA records (IPv6 addresses), the same question a browser asks before it connects, and lists every address with how long resolvers may keep it (the TTL).
Then it goes further than a plain DNS to IP lookup: it follows the CNAME aliases from the name to its addresses, finds the network that announces each address and who the block is registered to, flags addresses that belong to a CDN rather than the website's own server, and shows what five public resolvers answer side by side.

The answerEvery IPv4 and IPv6 address, ready to copy, and what the lookup found in a sentence each.Each addressIts network and AS number, the registry's record with the abuse contact, the reverse name and DB-IP's city.Five resolversGoogle, Cloudflare, Quad9, OpenDNS and AdGuard asked at once: rotating addresses and filtering blocks show here.The pathFrom the resolver to the name, each CNAME alias, the addresses and the network behind them.Why does a website have more than one IP address?
A domain can have many A and AAAA records, and the set can change between lookups. Four reasons cover nearly every case:
IPv4 and IPv6
A site that supports both has A records and AAAA records. A device with IPv6 usually tries the IPv6 address first and falls back to IPv4 within a fraction of a second (Happy Eyeballs).
Load balancing
Several servers share the traffic: the DNS answer lists them all, often in a different order each time, and clients usually try them in order. This is round-robin DNS.
Answers by location
Big sites answer each resolver with servers near it, so a lookup from Tokyo and one from Frankfurt get different addresses. Resolvers can pass on part of the visitor's address for this (EDNS Client Subnet).
Anycast and CDNs
A CDN such as Cloudflare announces the same address from hundreds of data centres, and the internet's routing carries each visitor to a nearby one. One address, many places.
Is the IP address the website's real server?
Not when a CDN or a security proxy is in front. Then the domain resolves to the CDN's addresses: visitors connect to the CDN, and the CDN fetches the pages from the website's own server, the origin, out of sight. The address is real, but it belongs to the CDN and serves thousands of other sites too.
Domain to IP tells the two apart. It knows the networks of the big CDNs and proxies (Cloudflare, Akamai, Fastly, Imperva, Sucuri and others) by their AS numbers, and the CDNs that run on a cloud's network, like Amazon CloudFront, by the CNAME they give their customers. Their addresses get no city: a CDN address is either an edge server near the resolver that asked or an anycast address that answers from many places at once, and neither says where the website is stored.
Can you find the real IP behind Cloudflare?
Not from DNS: a proxied record answers with Cloudflare's addresses only. The origin can still leak through records that skip the proxy, such as mail. or ftp. names, MX records or an SPF record that lists the server's address.
If the site is yours, proxy every web record that points at the origin, and run mail and anything else that can't be proxied on another server. If it isn't, report abuse to the CDN: Cloudflare forwards reports to the host and the site's owner.
We show the addresses a name resolves to, never a server a CDN hides: that address is what lets attacks get around the CDN's protection.
How www.example-shop.com resolves
- AskedGoogle Public DNS8.8.8.8 · 18 ms · TCP
- Namewww.example-shop.com
- Aliaswww.example-shop.com.cdn.cloudflare.netCloudflare
- Addresses203.0.113.10203.0.113.112001:db8::10
- NetworkCloudflareAS13335 · registered in United States
- Origin serverHidden behind CloudflareOnly the site's owner and Cloudflare know it
Find a website's IP address with nslookup, ping and dig
Every computer can convert a domain to an IP address from the command line. Put the site's name in place of example.com:
| System | Command | What it shows |
|---|---|---|
| Windows | nslookup example.com | The addresses from your configured resolver; add a server's address to ask that one (nslookup example.com 8.8.8.8). |
| Windows PowerShell | Resolve-DnsName example.com | Each A, AAAA and CNAME record with its TTL. |
| macOS, Linux | dig +short example.com A | The IPv4 addresses, after any alias names; AAAA for IPv6, without +short for the TTLs. |
| Linux | getent ahosts example.com | What the system itself resolves, the hosts file included, as most programs see it. |
| Any | ping example.com | The one address the system picked, IPv6 or IPv4 (a Mac's ping uses IPv4 only; ping6 for IPv6). |
On an iPhone or Android phone there is no command line: use the lookup above, which works in any browser.
In Chrome or Edge, the developer tools' Network tab shows the address a page actually loaded from: select the first request, then Remote Address under Headers.
Why does my computer or ping show a different IP?
A lookup here and one on your own computer can disagree, and both can be right:
- 1
A different resolver
Your computer asks your provider's or router's resolver, which may pick other servers near you. Pick the same resolver above to compare.
- 2
Rotation and location
A load-balanced or location-aware site answers with other addresses each time or in each place.
- 3
A cached answer
Your computer and browser keep answers until their TTL runs out, so a site that just moved can show its old address for a while.
- 4
The hosts file
An entry in the hosts file (C:\Windows\System32\drivers\etc\hosts, /etc/hosts) overrides DNS on that computer.
- 5
IPv6 first
Browsers, and ping on Windows and Linux, prefer IPv6 when your network has it, so they often use the AAAA address, not the A.
Why doesn't the website open when I type its IP address?
Because one server, and one IP address, often carries many websites. The browser names the site it wants in every request (the Host header, and in HTTPS the SNI field of the handshake), and the server picks the site from that name. Typed as a bare address, the request names no site: the server shows a default page, an error, or a certificate warning, since its certificate is for the domain, not the address.
Behind a CDN it fails for the same reason: Cloudflare, for one, refuses a request for its own address with error 1003.
- Host: shop.examplethe shop's pages
- Host: blog.examplethe blog's pages
- Host: 192.0.2.10a default page or an error
Can an IP address identify a website?
Only sometimes. A dedicated server's address often has a reverse DNS name (a PTR record) that hints at its owner, but on shared hosting and CDNs one address serves hundreds or thousands of domains, and the reverse name, if there is one, is the host's (an Amazon or Akamai name), not the site's. Reverse DNS shows an address's own name, and IP Lookup shows the network and organisation it is registered to.
How to trace a website's location
Three different answers hide behind "where is this website?", and lookups often mix them up:
| Where the server stands | A geolocation database such as DB-IP places the address in a city. Good for a server in one data centre; meaningless for a CDN address, an edge server near whoever asked or an anycast address that is everywhere. |
|---|---|
| Where the address block is registered | The country of the organisation the regional registry gave the block to. Most of Cloudflare's blocks are registered in the US, wherever the servers stand. |
| Who runs the website | Not in the address at all: WHOIS names the registrar and often hides the owner; the site's own pages (contact, imprint) usually say who is behind it. |
None of these locate a person: a website's address leads to a data centre and the company that runs it.
Is it legal to look up a website's IP address?
Yes. A domain's addresses are published in DNS so that every browser can find the site, and registries publish who holds each address block. Looking them up is what a browser does on every visit.
What the law forbids is what someone might do next, such as breaking into a server or flooding it with traffic; scanning a server without permission can break a provider's rules, or the law in some countries. To report spam, phishing or an attack from an address, write to the network's abuse contact, which the result shows for each address.
URL to IP: paste any link, get the server's address
A URL to IP converter needs only the host: the scheme, port, path and query never reach DNS. Paste a link as it is; the lookup takes the name from it, keeps www. (it can point somewhere else than the bare domain) and converts a Unicode domain to the form DNS uses:
| Pasted | Looked up |
|---|---|
| https://www.example.com/shop?id=7 | www.example.com |
| http://example.com:8080/ | example.com |
| user@mail.example.org | mail.example.org |
| bücher.de | xn--bcher-kva.de |
Domain to IP API
A free endpoint with CORS for browsers: POST a domain or GET it in the query, with an optional resolver. The answer keeps the fields of our older API and adds the CNAME chain, TTLs, networks, the www twin and all five resolvers. 30 lookups a minute per network; repeats come from cache while the TTL lasts.
$ curl "https://dnsrobot.net/api/domain-ip?domain=github.com&dnsServer=cloudflare"
{
"success": true, "domain": "github.com",
"summary": { "totalIPs": 1, "ipv4Count": 1, "ipv6Count": 0, "hasCDN": false, … },
"ipAddresses": [ { "ip": "140.82.121.4", "version": "IPv4", "asn": "AS36459", "ttl": 60, … } ],
"chain": [], "twin": { "name": "www.github.com", … }, "resolvers": [ … ]
}Domain to IP FAQ
How do I find the IP address of a website?
How do I convert a domain to an IP address?
Is DNS to IP, host to IP or URL to IP the same thing?
Why does a domain have several IP addresses?
Why does the IP address belong to Cloudflare?
How do I find a website's IP address with the command line?
Why do I get a different IP address than this tool?
Can I find the real IP address behind Cloudflare?
Can an IP address identify a website?
How can I trace a website's location?
Is it legal to look up or trace a website's IP address?
Is this domain to IP lookup free, and do you keep what I look up?
Missing something?Suggest a feature or a new tool
More DNS and IP tools
DNS Lookup
Every DNS record from the domain's own nameservers, beside Google's and Cloudflare's cache
IP Lookup
Look up IP address geolocation, ISP, and network details instantly
Hosting Checker
Find out who hosts any website: web host, CDN, CMS, email provider, registrar and SSL issuer
Reverse DNS Lookup
Find hostnames associated with any IP address via PTR records
WHOIS Lookup
Look up domain registration, registrar, and owner details via RDAP
ASN Lookup
Look up Autonomous System Number details and IP ranges