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 220.127.116.11) 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 18.104.22.168, the command here would be :
dig 22.214.171.124.in-addr.arpa PTR