Pick a Free OS

User login


DNS Tutorial

And in the same way the reverse zone file also has the above things. The reverse zone file of master server that is 192.192.192.reverse may look like

@ IN SOA kshounish2.love.com. root@kshounish2.love.com. (

2000011301 ; serial

3600 ; refresh

900 ; retry

1209600 ; expire

43200 ; default_ttl


@ IN NS kshounish1.bigleap.com

1 IN PTR kshounish1.bigleap.com.

2 IN PTR kshounish2.bigleap.com.

3 IN PTR kshounish3.bigleap.com.

4 IN PTR kshounish4.bigleap.com.

5 IN PTR kshounish5.bigleap.com.

6 IN PTR kshounish6.bigleap.com.

7 IN PTR kshounish7.bigleap.com.

8 IN PTR kshounish8.bigleap.com.

9 IN PTR kshounish9.bigleap.com.

10 IN PTR kshounish10.bigleap.com.

Note: Because the network id is already determined by @ that is 192.192.192.reverse, 1. replaces the reverse.10.

So, once the master server zone file and master server reverse zone file is configured well, just start

#/etc/rc.d/init.d/named restart

Now our master server is configured. So, if any machine has its name server lookup as, we will be able to access it by a command called nslookup.

Slave server configuration

We want to configure a slave server as kshounish2.bigleap.com. of kshounish1.bigleap.com.

Slave Server setup: We go to dnsconf and configure secondaries option. It will ask for the master server. We write kshounish1.bigleap.com/ and save it

If your slave server has domain as bigleap.com. and whose master is kshounish1.bigleap.com, then the /etc/named.conf at slave server should look like:

#this is the macro which defines where will the DNS related file stay

options {

directory “/var/named”;


#the below line says about the root servers or cache servers

zone “.” {

type hint;

file “named.ca”;


# this particular option tells about the file which will keep hostname to ipaddress mapping got from master server

zone “bigleap.com.”{

type slave;

file “slave/bigleap.com.”;

masters { kshounish1.bigleap.com;};


# this particular option tells about the localhost file mapping

zone “0.0.127.in-addr.arpa”{

type master;

file “named.local”;


# this particular option tells about the file which will keep ippaddress to #hostname mapping

zone “192.192.192.IN-ADDR.ARPA”{

type slave;