I know it is possible to resolve IP addresses to host names but can IPs be resolved to domain names?
|
feedback
|
|
Yes, you can (sometimes) resolve an IP Address back to a hostname. Within DNS, an IP Address can be stored against a For best results, you should really get a hold of the You can then do:
To lookup the IPv4 address for a host, or:
To lookup the IPv6 address for a host, or:
To lookup the hostname for IPv4 address
To get the hostname for the IPv6 address 2001:db8::567:89ab. | |||||||||||||||||||
feedback
|
|
You can use Unlike normal DNS lookups, where many names can resolve to a single IP address, reverse DNS lookups can only resolve to a single name, and that's handled by whomever controls the reverse DNS information for the IP block in question. Nobody else can set up a This ServerFault question has a bit more info on this topic. My point is that just because you can do it doesn't mean that you'll get what you're expecting or that it will be useful. | |||||||||
feedback
|
|
You can get the host name either IPv4 or IPv6 address by making use of the gethostbyaddr() function in sockets. Link: http://beej.us/guide/bgnet/output/html/singlepage/bgnet.html#gethostbynameman Regards, | |||
|
feedback
|
|
Another way to "resolve" IP-addresses to hostnames is possible using the bing search engine. If the host runs a public webserver and some sites served by the host are indexed, you can query it using the Just enter | |||
|
feedback
|
|
How about host? I use it on a daily basis at work
| |||||||
feedback
|
