Reverse DNS Lookup

Need to setup reverse DNS lookup for your public IP? Here’s the quick cheat sheet.

Note: In this example the IP address is 188.251.142.63 and the host name is mail.virtualrick.com

  1. Request that your ISP (or if you control your IP’s through ARIN log in to their management portal) to delegate the reverse lookup for your IP’s to your DNS server
    1. If you do not want to control this you can ask that they create/update the PTR records
  2. Create the reverse DNS zone
    1. example: 142.251.188.in-addr.arpa
  3. Create the PTR record with the partial IP address and host name
    1. example: IP:”63″ and hostname:”mail.virtualrick.com”
  4. Wait for propagation
  5. Verify
      1. # dig ptr 63.142.251.188.in-addr.arpa; <<>> DiG 9.9.5-3ubuntu0.5-Ubuntu <<>> ptr 63.142.251.188.in-addr.arpa
        ;; global options: +cmd
        ;; Got answer:
        ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 26138
        ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1;; OPT PSEUDOSECTION:
        ; EDNS: version: 0, flags:; udp: 512
        ;; QUESTION SECTION:
        ;63.142.251.188.in-addr.arpa. IN PTR;; ANSWER SECTION:
        63.142.251.188.in-addr.arpa. 21265 IN PTR mail.virtualrick.com.
        
        ;; Query time: 9 msec
        ;; SERVER: 8.8.8.8#53(8.8.8.8)
        ;; WHEN: Wed Oct 28 16:01:54 CDT 2015
        ;; MSG SIZE rcvd: 92