Monday, July 25, 2011

How To Check Reverse DNS Lookup

       People can remember Domain Name rather than ip-address.For an example than their ip-address are two types DNS, Forward DNS and Reverse DNS.

Forward DNS : Networks use the Domain Name System to determine the IP address associated with a domain name.

Reverse DNS : Reverse DNS lookup is the inverse process, the resolution of an IP address to its designated domain name.

dig is the command to make the DNS Queries.

root@debian:~# dig +noall +answer

Output :        3547    IN    A        3547    IN    A

+noall, +answer option tell the dig command to report only the answer of the DNS query and skip the rest of the output.

Reverse DNS can be checked in two method, one with the -x option passing to the dig command and other host command.

Method 1:

root@debian:~# dig  +noall +answer -x

Output : 1745    IN    PTR

Method 2:

root@debian:~# host

Output : domain name pointer

Common Uses of Reverse DNS :

2.Network troubleshooting
3.Avoid spammers and phishers using a forward confirmed reverse DNS etc

No comments:

Post a Comment