How to Find a Website's IP Address
Every domain resolves to one or more IP addresses. Finding them is useful for debugging DNS, checking if a site is CDN-hosted, or confirming a mail server. Here are five methods that work across operating systems.
Method 1: nslookup (Windows, Mac, Linux)
Open Terminal or Command Prompt and run:
nslookup example.com
The Non-authoritative answer section shows the IPv4 and IPv6 addresses your DNS resolver returned.
Method 2: dig (Mac and Linux, or Windows with WSL)
dig example.com +short
Cleaner output than nslookup — just the IPs, nothing else. Add AAAA for IPv6, MX for mail servers, NS for name servers.
Method 3: ping
ping example.com shows the resolved IP on the first line. Stop with Ctrl + C. Note: many sites block ICMP, so the IP will still show even when ping itself fails.
Method 4: Trace the IP's details
Once you have the IP, paste it into our IP tracer to see its ISP, hosting provider, country, and whether it belongs to Cloudflare, AWS, Akamai, or another CDN. Often the "website's IP" you get from DNS is the edge node, not the origin server.
Method 5: Online WHOIS
Sites like who.is combine DNS lookup with WHOIS registration data — you see the IP plus the registrar, owner, and name server setup in one view. Helpful for investigating unknown domains.
Try it now
Curious what your IP is showing the world right now? Check your IP address & location instantly with our free tool — no signup, nothing stored. Or trace any other IP to see its geolocation, ISP, and network details.