Possible Duplicate:
Reverse DNS Lookup from the Command Line

Is there a way to do manual reverse dns loookup? For example the way we use dig or nslookup. How do look up a domain name if I have the IP address?

Edit: When I dig, for example an A record for google.com. I get corresponding IPs to google.com. If I have an IP of some server is there a way using DNS lookup tools to get the domain name of the server?

marked as duplicate by dunxd, Chris S Aug 21 '12 at 13:41

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • oh damn. Yes duplicate for sure. – Swair Aug 21 '12 at 10:13
  • There isn't necessarily a single Fully Qualified Domain Name (FQDN - includes the hostname) for the server. The server may have multiple NICS, multiple IP addresses, and multiple DNS records pointing at one or more of these. – dunxd Aug 21 '12 at 10:30

Use the -x option with dig:

 # dig +short -x

nslookup ip_address will do a reverse DNS lookup, but it will only return an entry if there is a PTR record available for the IP address. This will not necessarily return all the domain names that are linked to the IP address.


You can use standard UNIX / Linux utilities such as nslookup, dig or hosts to find out reverse DNS of a given IP address.

host ip


nslookup ip

Not the answer you're looking for? Browse other questions tagged or ask your own question.