What is a hostname?
The displayed hostname is the reverse DNS name of your public IP address. Where DNS translates a domain name such as example.com into an IP address, reverse DNS does the opposite: it looks up which name belongs to an IP address. If your address has no reverse DNS record, the tool shows the IP address itself.
How reverse DNS works
Reverse DNS uses a special record type called a PTR record. To find the hostname for 203.0.113.42, a resolver reverses the numbers and queries 42.113.0.203.in-addr.arpa. The answer is whatever name the owner of that IP range has published, for example 203-0-113-42.dsl.example-isp.net.
Because the record lives in the IP owner’s DNS zone, you can’t set it from your own domain. For a home connection, your ISP controls it.
What your hostname can reveal
ISPs often generate hostnames automatically, and they tend to follow a pattern:
- Your IP address, written into the name with dashes
- The ISP’s domain, which identifies your provider
- The connection type, such as
dsl,cable,fiberormobile - A city or region code, which can hint at your location
A hostname that contains a hosting company or VPN provider’s domain is a strong sign that traffic is coming through a server rather than a home connection.
Why hostnames matter
- Email delivery: mail servers check that a sending IP has a PTR record whose name points back to the same IP (forward-confirmed reverse DNS).
- Logs and security: administrators read hostnames in server logs because they are easier to recognize than raw IP addresses.
- Troubleshooting: tools such as
tracerouteshow hostnames for each hop, making it easier to see where a connection slows down.
Looking up a hostname yourself
On any computer you can run a reverse lookup from the command line:
- Windows, macOS or Linux:
nslookup 203.0.113.42 - macOS or Linux:
dig -x 203.0.113.42