Reverse DNS Lookup
Performing Reverse DNS Lookup converts an IP-address into it’s Hostname.
For this we need to write the IP-address in reverse order (for e.g. 192.168.1.1 will be 22.214.171.124) and then append “.in-addr.arpa.” to it. Next we need to make a query for a PTR Record using DIG. Let’s make a DNS PTR query for 126.96.36.199, the command here would be :
dig 188.8.131.52.in-addr.arpa PTR