Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 I get corresponding IPs to If I have an IP of some server is there a way using DNS lookup tools to get the domain name of the server?

share|improve this question

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
up vote 0 down vote accepted

Use the -x option with dig:

 # dig +short -x
share|improve this answer

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.

share|improve this answer

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

share|improve this answer
wondefull...... – Kevin Parker Aug 21 '12 at 10:36

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