Domain to IP: Find Any Website's IP (nslookup, dig, Online)
A domain to IP lookup answers one question: which A (IPv4) and AAAA (IPv6) records sit behind a hostname right now. It is not a ping of the web server, not a TLS certificate check, and not a WHOIS owner record. FlashKit’s domain to IP converter does that lookup from this tab by calling Google Public DNS. The same job on your laptop is nslookup or dig. The examples below use the documentation domain example.com and commands actually run on 10 November 2026, 12:13 UTC. Internationalized names may need you to convert xn-- domains to Unicode first so you can read the label.
What domain to IP really returns (A, AAAA, CNAME)
DNS is a tree of record types. The ones people mean by “find the IP of a website” are:
- A — IPv4 address (32 bits). Type 1 in the DNS JSON API.
- AAAA — IPv6 address (128 bits). Type 28.
- CNAME — “this name is an alias of that name.” You then look up A/AAAA on the target.
dig +short example.com CNAMEon 10 Nov 2026 returned an empty line:example.comis not an alias; it has addresses of its own.
A URL such as https://www.example.com/index.html is not a DNS name. Strip the scheme and path. www.example.com and example.com can be different records. Paste only the hostname into a resolver. For an internationalized name, convert to the xn-- ACE form first if the resolver rejects Unicode — that conversion is the Punycode converter, not this page.
TTL in the Google JSON (300 seconds on the 10 Nov 2026 example.com snapshot) is how long a recursive resolver may cache that answer. It is not a promise that the address will last 300 seconds at every resolver — some caches already hold an older set. Ping uses ICMP to an address you already have; it does not discover DNS. If ping fails and dig succeeds, you have a filtering or routing problem, not a “wrong IP from the converter.”
Method 1: online converter (FlashKit)
Read the component, not the marketing line. DomainToIpConverterTool keeps a text field (default sample google.com) and a Convert button. On click it:
- Trims the input. Empty input shows “Please enter a valid domain name.”
- GETs
https://dns.google/resolve?name=<hostname>— Google Public DNS JSON API, documented here. There is notype=query parameter, so the API defaults to type A (1). - Requires HTTP success and JSON
Status === 0with anAnswerarray. Otherwise it throwsCommentor “Could not resolve domain.” - Keeps answers whose
typeis 1 (A) or 28 (AAAA) and listsdata.
Because the request does not set type=AAAA, the Answer array for example.com on 10 Nov 2026 was two A records only:
{"Status":0,"Question":[{"name":"example.com.","type":1}],
"Answer":[
{"name":"example.com.","type":1,"TTL":300,"data":"172.66.147.243"},
{"name":"example.com.","type":1,"TTL":300,"data":"104.20.23.154"}
]}
The same name with &type=AAAA returned 2606:4700:10::6814:179a and 2606:4700:10::ac42:93f3. The FlashKit UI would not show those unless they appeared in the default A response. The hostname you type is sent to Google. FlashKit does not run a recursive resolver of its own. This is a snapshot, not a change to anyone’s DNS.
Resolve a hostname in this tab
Calls dns.google (default type A). Lists A, and AAAA only if that JSON included type 28. Not WHOIS.
Open the domain to IP converterMethod 2: nslookup on Windows and macOS
nslookup ships with Windows and with macOS. It asks the machine’s configured recursive resolver (here, 10.0.0.2) and prints a small report. Genuine output for example.com on 10 November 2026, 12:13 UTC:
Server: 10.0.0.2
Address: 10.0.0.2#53
Non-authoritative answer:
Name: example.com
Address: 104.20.23.154
Name: example.com
Address: 172.66.147.243
Name: example.com
Address: 2606:4700:10::ac42:93f3
Name: example.com
Address: 2606:4700:10::6814:179a
Read it as: this resolver is not authoritative for example.com; it cached or fetched the answers. You got two IPv4 addresses and two IPv6 addresses. On Windows, nslookup example.com 8.8.8.8 forces Google Public DNS as the server. On macOS the same syntax works. “Non-authoritative” is normal for a recursive lookup; it is not an error.
Method 3: dig A, AAAA, and resolver differences
dig is the DNS admin’s tool (bind-utils / dnsutils). +short prints one record per line. Same moment as the nslookup above:
$ dig +short example.com A
172.66.147.243
104.20.23.154
$ dig +short example.com AAAA
2606:4700:10::6814:179a
2606:4700:10::ac42:93f3
$ dig +short example.com CNAME
(empty)
Asking two public resolvers for A on the same name, same minute:
$ dig +short @1.1.1.1 example.com A
172.66.147.243
104.20.23.154
$ dig +short @8.8.8.8 example.com A
104.20.23.154
172.66.147.243
Same two addresses, different order. That is a resolver-view difference, not two different sites. If you are writing a firewall allow-list, pin the name in DNS or allow the whole anycast range your CDN documents — do not copy a single A record from one lookup and expect it to last. After you have an address, the IP address lookup is a GeoIP/org convenience check. Registrar and expiry sit on WHOIS lookup, which is a different protocol.
Why CDN sites return shared, changing IPs
The example.com A records above are in Cloudflare ranges (104.20.0.0/16-ish and 172.66.0.0/16-ish in this snapshot). Shared anycast IPs serve many customers. Tomorrow’s lookup can return a different pair. Reverse DNS (PTR) on a CDN address almost never returns the original hostname: the PTR, if it exists, names the anycast node, not your site. Do not use “reverse lookup to prove ownership.” Prove ownership with a TXT record or a certificate, not PTR.
Akamai, Fastly, and similar networks behave the same way: many A records, TTLs of a few minutes, answers that depend on the resolver’s location. A laptop in one city and dig @8.8.8.8 from a VM in another can disagree. That is the product working.
Bulk: extract domains, then resolve
A spreadsheet of full URLs is not a list of DNS names. FlashKit’s domain extractor runs a hostname regex on pasted text, lowercases hits, and de-duplicates. It does not fetch the URLs and does not resolve them. Walkthrough with Sheets formulas and the public-suffix caveat: extract domains from a list of URLs. Workflow: paste the URL list → copy the unique hostnames → resolve each with the domain-to-IP converter or with dig +short in a loop you run locally. The extractor will also pick up names inside query strings if they match the regex; skim the output before you treat it as an allow-list.
Pull hostnames out of a URL list
Local regex, unique lowercase domains. Then resolve those names — this page does not call DNS.
Open the domain extractorTroubleshooting: NXDOMAIN, SERVFAIL, stale cache
- NXDOMAIN — the name does not exist. Check spelling, and check whether you wanted
www.or the apex. Creating an A record at the registrar fixes it; flushing cache does not. - SERVFAIL — the resolver failed to get a valid answer (broken delegation, DNSSEC mismatch, timeout). Try
dig @1.1.1.1anddig @8.8.8.8. If both fail, the problem is the zone, not your laptop. - Stale cache — you changed the record 30 seconds ago and still see the old A. Wait for TTL, or query the authoritative NS listed in WHOIS. Flush helpers: Windows
ipconfig /flushdns; macOSsudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder; systemd-resolvedsudo resolvectl flush-caches.
A longer path through IP, DNS, and WHOIS for application debugging is network troubleshooting for web developers. Mapped IPv6 spellings of an A record belong on the IPv4 to IPv6 conversion guide, not in this lookup. The FlashKit default sample is google.com, not example.com; both are fine as hostnames. Do not paste a full URL into the box — the Google JSON API will treat https://example.com as a name that does not exist.
Frequently asked questions
What does a domain to IP lookup actually return?
DNS answers for the name you typed: usually A (IPv4) and, if you ask, AAAA (IPv6). A CNAME means “look under this other name.” It is not the HTML of the site and not a WHOIS owner record.
Why does FlashKit show only IPv4 for some names?
The converter calls dns.google/resolve without type=AAAA, so Google’s JSON API defaults to type A. AAAA records need a second query (or dig AAAA). The UI will list type 28 answers if they happen to be in that JSON, which they usually are not.
Why do CDN sites show several IPs that change?
Anycast and DNS load-balancing. example.com on 10 Nov 2026 (UTC) returned Cloudflare addresses 104.20.23.154 and 172.66.147.243 plus two AAAA records. Reverse DNS on those addresses rarely returns example.com.
Is nslookup on Windows different from dig?
Both ask a recursive resolver. nslookup prints a small report; dig +short prints one address per line. The resolver you hit (ISP, 1.1.1.1, 8.8.8.8) can return a different ordering or a different pop.
What do NXDOMAIN and SERVFAIL mean?
NXDOMAIN: that name does not exist in DNS (typo, or the zone never created it). SERVFAIL: the resolver could not get a valid answer (lame delegation, DNSSEC failure, timeout). Flushing your local cache does not create a missing record.