Link to home
Start Free TrialLog in
Avatar of v_shalchian
v_shalchianFlag for Iran, Islamic Republic of

asked on

Setup a Master-Slave dns server

Hi,
I'm trying to setup a master-slave dns server in the simplest way on Centos 5.
I have one BIND dns server with default configuration and it is working finefor the zone "mylab.com" which responses to the queries well.
For the slave server I copied all configuration except "mylab.com.zone" from master to slave and changed this part in named.conf of slave server :

zone "mylab.com" in{
        type slave;
        file "mylab.com.zone";
        masters {
                192.168.1.61;
        };
        allow-update { none; };
};

the named service starts in Slave node but does not resolve queries form mylab.com zone.
Actually I do not know what step is needed for the slave to be updated by master.
The filewall and SELinux is off on both nodes and they have network connectivity.
There is not any restriction like allow-transfer in configuration files.

Since they are both on Vmware workstation with bridged networking I could run a packet analyzer on the windows host and there is no sign of zone transfer between two nodes.

I was wondering if anyone could tell me what is the problem or what am I missing.
ASKER CERTIFIED SOLUTION
Avatar of fosiul01
fosiul01
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of noci
noci

Did you enable allow-transfer on the master?
What is the zone definition on the master?
Did it do the zone transfer when you started/restarted bind on the slave? Remember zone transfers are done over TCP, so you need to open TCP/53 at least to the slave on the master.
Avatar of v_shalchian

ASKER

Thanks.
Finally my slave node updated.
The "chown named:named mylab.com.zone" command helped and I took some time for slave to be updated.
I also made a chnge in the /etc/sysconfig/named and uncommented the below line :

ENABLE_ZONE_WRITE=yes  --  If SELinux is disabled, then allow named to write
#                            its zone files and create files in its $ROOTDIR/var/named
#                            directory, necessary for DDNS and slave zone transfers.
#                            Slave zones should reside in the $ROOTDIR/var/named/slaves
#                            directory, in which case you would not need to enable zone
#                            writes. If SELinux is enabled, you must use only the
#                            'named_write_master_zones' variable to enable zone writes.

Thank you for your help