Domain – Reverse DNS Lookup from the Command Line

command-line-interfacedomainip addressreverse-dns

I'd like to get a list of all domains pointed to a certain IP address. Is there a way to get this information from the command line?

Nothing like "host", "nslookup" or "dig -x". Those return the hostname of the IP address which, while helpful, is only part of what I want returned.

Edit for more information:
An example of a website that returns this information is http://www.domaintools.com/reverse-ip/?hostname=74.125.47.104

Best Answer

There isn't any way to get this information at all, because there isn't a centralized authoritative repository for this information. Anyone that owns a domain name can create an A record or CNAME that points to a given IP address. The owner of the DNS records doesn't necessarily have to have any control over the IP addresses.

For example, Microsoft could create a series of A records named google.microsoft.com that pointed at the public IP addresses for google.com. Other than already knowing it exists, there's no easy way to take Google's IP addresses and find out that google.microsoft.com exists.