Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

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
add comment

3 Answers

up vote 0 down vote accepted

Use the -x option with dig:

 # dig +short -x 64.34.119.12
 stackoverflow.com.
share|improve this answer
add comment

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
add comment

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

or

nslookup ip

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

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