JAVA SCRIPT

RH 253: HOW TO CONFIGURE SLAVE SERVER

    TO CONFIGURE SLAVE SERVER



MASTER MACHINE


1.vim /etc/named.conf
  allow-transfer{ 192.168.0.43; };  ->put this line in masters named.
2.service named restart



SLAVES MACHINE


1. yum install bind caching-nameserver -y
2. vim /etc/named.conf         ->edit this file
3. setsebool -P named_disable_trans on
4. chmod a+w /var/named
5. cd /var/named
6. ls -l
7. vim  /etc/resolv.conf            ->edit this file
8. service named restart
9. ls -l                            ->zone files get created


CLIENT


1. nslookup  <hostname>      ->reads from master
2. service named stop       ->Do this is in master
3. nslookup  <hostname      ->reads from slave




 CONFIGURATION FILES


1. masters-named.conf

options {
directory "/var/named";
allow-transfer { 192.168.0.24; };
};

zone "matrix.com"{
type master;
file "forward.zone";
};

zone "0.168.192.in-addr.arpa"{
type master;
file "reverse.zone";
};



2. slaves-named.conf


options {
directory "/var/named";
};


zone "matrix.com"{
type slave;
file "forward.zone";
masters { 192.168.0.59; };
};

zone "0.168.192.in-addr.arpa"{
type slave;
file "reverse.zone";
masters { 192.168.0.59; };
};




3. slaves-resolv.conf


nameserver 192.168.0.59
nameserver 192.168.0.24

 

If you found this post useful, I would really love it, if you can Like the Page, or share it with your Facebook/Google+/Twitter Friends... It will keep me motivated. Thank you!

No comments:

Post a Comment