Hostname to IP shows the IP addresses that a hostname or domain points to. Computers connect to addresses, not to names, so every visit to a website and every email delivery starts with this conversion. The tool performs it on the IP Tracker server and lists what it finds.
It looks for both kinds of address: IPv4, stored in A records, and IPv6, stored in AAAA records. The result is one table with every address and its version.
How to find the IP address of a hostname
- Type a hostname or domain into the field, for example
example.com or www.example.com. You can also paste a full web address. Only the hostname in it is used. - Click Lookup. The server asks public DNS resolvers for the A and AAAA records of that name.
- Read the Hostname row to confirm which name was looked up.
- Read the Addresses table. Each row has an Address and a Version, which is IPv4 or IPv6.
- Use Copy JSON or Download JSON if you need the list elsewhere, or open "View as JSON" to see it in that form.
Each name is looked up exactly as entered. example.com and www.example.com are two different names in DNS and can have different addresses, so check the one you really use.
Reading the result
An IPv4 address looks like 203.0.113.10: four decimal numbers with dots between them. An IPv6 address is longer and uses hexadecimal digits with colons, as in 2001:db8::10. A name that has both kinds is reachable over either, and the visitor's device chooses.
The table can hold one row or many. If a name is an alias for another name (a CNAME record), the resolvers follow the alias, and the addresses you see are those of the name at the end of the chain. The alias itself is not shown.
The order of the rows carries no meaning. Resolvers commonly rotate the order of addresses between answers.
How a name becomes an address
When a program needs to reach www.example.com, it asks the operating system, and the operating system asks a DNS resolver. The resolver is a server that finds answers on behalf of its users. Home routers usually point devices at the internet provider's resolver.
If the resolver has no stored answer, it works through the DNS hierarchy. A root server tells it which servers handle .com. Those servers tell it which nameservers are responsible for example.com. The nameservers at that last step are called authoritative: they hold the actual records and return the addresses.
The resolver passes the answer back and keeps a copy for a period that the domain owner sets, called the TTL (time to live). Further requests for the same name during that period are answered from the copy. Caching keeps DNS quick, and it is also the reason a changed record takes time to be seen everywhere.
This tool puts the question to three public resolvers, Cloudflare at 1.1.1.1, Google at 8.8.8.8 and Quad9 at 9.9.9.9, and shows whichever answer arrives first.
Why one name has several addresses
A name often has both an IPv4 and an IPv6 address. These are two routes to the same service. Each device uses the version its own connection supports, and most prefer IPv6 when both work.
Busy sites publish several addresses of the same version to share the load. Each address leads to a different server, or to a different entry point of the same system. A client can use any of them, which also gives it a fallback when one stops responding.
Content delivery networks (CDNs) go further. A CDN keeps copies of a site in many locations and answers DNS queries with addresses close to whoever asked. Two people in different countries can look up the same name at the same moment and get different addresses, and both answers are correct.
Why your own computer may give a different answer
The addresses shown here are what public resolvers return to the IP Tracker server. Your own device can see something else, for several ordinary reasons.
- Every operating system has a hosts file, a local list that maps names to addresses and is normally consulted before DNS. An entry left there by a developer, an old migration or ad-blocking software overrides the public answer on that machine only.
- The browser, the operating system and the router each keep a cache of recent answers. After a DNS change they can hold the old address until its TTL runs out.
- Your device uses a different resolver, usually your provider's. It may have cached the answer at a different moment, and a CDN may give it different addresses because it is in a different place.
- Company networks and VPNs often answer certain names with internal addresses that the public internet never sees. Some security and parental-control filters also replace the answer for blocked names.
To see what your own machine uses, run ping example.com in a terminal or command prompt and read the address it prints. ping goes through the operating system, so the hosts file and the local cache are included. nslookup example.com asks your configured resolver directly and skips the hosts file. Comparing those two with the table here usually shows where a difference comes from.
Problems this lookup helps with
- You moved a website to a new server. Look up the name and check that the table shows the new server's address. If it shows the old one, the record was not changed, was changed at the wrong DNS provider, or the old answer is still cached.
- A site works for you and not for a colleague, or the other way around. Compare the public answer here with what each machine resolves.
- You need the address of a server for a firewall rule or an allowlist. Names on a CDN or a large cloud service return addresses that change, so a fixed rule may stop matching.
- You want to know whether a site is reachable over IPv6. A row with Version IPv6 means the name publishes an AAAA record.
- You are setting up reverse DNS for a mail server and need to confirm that the hostname in the PTR record points back to the server's address. Find the PTR name with Reverse DNS Lookup, then look that name up here.
- You want to know who hosts a name. Take an address from the table to IP Lookup to see the provider and network behind it.
When to use this tool and when to use DNS Lookup
Use this tool when the only question is which addresses a name leads to. It asks for A and AAAA records together and gives one short list.
Use DNS Lookup when you need the records themselves. It shows eight record types, so you can see whether a name is an alias through a CNAME record, which mail servers and nameservers the domain has, and what its TXT records say. When the addresses here are not what you expected, the CNAME and NS rows in DNS Lookup are the next place to look.
For the opposite direction, from an address back to a name, use IP to Hostname. After a recent change, DNS Propagation compares four public resolvers side by side.
What this tool does not show
The result is a list of addresses. It does not show TTL values, the CNAME records a name passed through, or which of the three resolvers answered. Nothing is tested on the addresses themselves, so a name can resolve correctly while the server behind it is down.
For a name on a CDN, the table shows the addresses given to the IP Tracker server at that moment. It is not the full set of addresses the service uses around the world.
A name used only inside a home or company network has no public record and does not resolve here. The tool also refuses any name that ends in .local, .internal, .test or localhost, and any public name that resolves to a private address such as 192.168.1.10.
A visitor can run 15 lookups a minute, and IP Tracker does not keep a history of the names that are looked up.
Frequently asked questions
How do I find the IP address of a website?
Enter the site's hostname, such as www.example.com, and click Lookup. The Addresses table lists every IPv4 and IPv6 address the name points to.
From a terminal, nslookup www.example.com or dig www.example.com gives the same kind of answer from your own resolver.
Why does a website have more than one IP address?
A site can publish an IPv4 address and an IPv6 address for the same service. It can also publish several addresses of one version, so that visitors are spread across servers and the site stays reachable when one server fails.
Sites on a content delivery network return different addresses depending on where the question came from.
Why does my computer show a different IP address for the same name?
Your computer may be using a cached answer, an entry in its hosts file, or a resolver that was given a different address by a content delivery network. On a company network or VPN, the name may also resolve to an internal address.
If the difference appeared just after a DNS change, the old record is probably still cached and will clear when its TTL runs out.
What is the difference between an A record and an AAAA record?
An A record holds an IPv4 address for a name. An AAAA record holds an IPv6 address. The name comes from the size of the address: an IPv6 address is four times as long as an IPv4 address.
A name can have either, both or several of each. This tool asks for both and marks each address with its version.
Why is there no IPv6 address in the result?
The name has no AAAA record. The site is published over IPv4 only, which is still common. Visitors on IPv6 connections reach such a site through IPv4 or through a translation service run by their provider.
Can I open a website by typing its IP address into the browser?
Sometimes, but often not. Many servers host several sites on one address and use the name sent by the browser to decide which site to show. A request by address alone carries no name, so the server returns a default page or an error.
HTTPS adds a second obstacle. The certificate is issued for the name, so the browser warns that it does not match the address.
Do example.com and www.example.com have the same IP address?
Often, but nothing requires it. They are separate names with separate records. One may point to a web server and the other to a redirect service or a content delivery network. Look up both if both are in use.
Why was my hostname refused?
The tool looks up public names only. It refuses names ending in .local, .internal, .test or localhost, and it refuses any name whose addresses include a private one such as 10.0.0.5 or 192.168.1.10.
Names used inside a home or company network belong to that network. Look them up from a machine inside it.