BIND Reverse DNS Example Setup

Posted on October 8th, 2015

For this example we are using the IP block 216.74.109/24

In /etc/named.conf add:

zone “” {
type master;
file “/var/named/”

Create the following file:


Inside this file use the following example configuration:

$TTL 86400
@ IN SOA localhost. root.localhost. (
991079290 ; serial
28800 ; refresh
14400 ; retry
3600000 ; expire
86400 ; default_ttl

Save your changes, then restart named using /etc/rc.d/init.d/named restart

A lookup of would show

5 Responses to “BIND Reverse DNS Example Setup”

  1. Jaime Hablutzel says:

    I think that should add that the reverse lookup should then be tested with something like:

    $ dig -x

    Where the -x is very important to be there.

    • Scott says:

      THANK YOU! I was banging my head against the wall trying to figure out why my reverse lookup zone wouldn’t work until I found this. Nslooklup was able to tell automatically I was doing a reverse lookup, but I guess dig is more of a stickler. 🙂

    • ggayi franklin j says:

      Thanks alot. This really helped I was using the plain dig and getting nothing

  2. Constantin says:

    When will the modifications be visible to the outside world? It depends on the TTL?

  3. Andrew says:

    Constantin, it depends on the Internet Service Provider you are using delegating their responsibility for reverse DNS lookup for the specified IP range to your DNS servers.

    They are the ones that have the control of the IP addresses allocated to them, unless you have acquired your own IP address block directly from an organisation like APNIC.

Leave a Reply