Reverse dns Linux and Unix Command Line

Animated gif: host, dig, and nslookup command in action

Animated gif: host, dig, and nslookup command in action

The reverse dns dig command is as follows on Linux, OS X, BSD, and other Unix-like operating systems:

dig -x {ip-address}
dig +noall +answer -x {ip-address}
dig +noall +answer -x 74.125.236.211

Sample outputs:

211.236.125.74.in-addr.arpa. 10912 IN   PTR     maa03s17-in-f19.1e100.net.

You can also use host command or nslookup command as follows:

host 74.125.236.211
nslookup 74.125.236.211

Examples and usage: HowTo Test or Check Reverse DNS on a Linux / Unix