#1  
Old 7th April 2011, 18:09
rj3k rj3k is offline
Junior Member
 
Join Date: Apr 2011
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
Default Slave DNS installation

I followed the instructions on this link:
Installation Of BIND As A Secondary (Slave) DNS Server On CentOS(http://www.howtoforge.com/installati...rver-on-centos)

I created another slave DNS & here's the error I've got, I followed the intructions from 1 to 4.
[root@localhost ~]# chmod 777 -Rvf /var/named/
mode of `/var/named/' retained as 0777 (rwxrwxrwx)
mode of `/var/named/nanofibre.zone' retained as 0777 (rwxrwxrwx)
mode of `/var/named/data' retained as 0777 (rwxrwxrwx)
mode of `/var/named/slaves' retained as 0777 (rwxrwxrwx)
mode of `/var/named/chroot' retained as 0777 (rwxrwxrwx)
mode of `/var/named/chroot/doamin.zone' retained as 0777 (rwxrwxrwx)
mode of `/var/named/chroot/var' retained as 0777 (rwxrwxrwx)
mode of `/var/named/chroot/var/named' retained as 0777 (rwxrwxrwx)
mode of `/var/named/chroot/var/named/data' retained as 0777 (rwxrwxrwx)
mode of `/var/named/chroot/var/named/slaves' retained as 0777 (rwxrwxrwx)
mode of `/var/named/chroot/var/tmp' retained as 0777 (rwxrwxrwx)
mode of `/var/named/chroot/var/run' retained as 0777 (rwxrwxrwx)
mode of `/var/named/chroot/var/run/named' retained as 0777 (rwxrwxrwx)
mode of `/var/named/chroot/var/log' retained as 0777 (rwxrwxrwx)
mode of `/var/named/chroot/dev' retained as 0777 (rwxrwxrwx)
mode of `/var/named/chroot/dev/random' retained as 0777 (rwxrwxrwx)
mode of `/var/named/chroot/dev/zero' retained as 0777 (rwxrwxrwx)
mode of `/var/named/chroot/dev/null' retained as 0777 (rwxrwxrwx)
mode of `/var/named/chroot/etc' retained as 0777 (rwxrwxrwx)
mode of `/var/named/chroot/etc/localtime' retained as 0777 (rwxrwxrwx)
mode of `/var/named/chroot/etc/rndc.key' retained as 0777 (rwxrwxrwx)
[root@localhost ~]# service named restart
Stopping named: [ OK ]
Locating /var/named/chroot//etc/named.conf failed:
[FAILED]

Please help.



Thank you
Reply With Quote
Sponsored Links
  #2  
Old 8th April 2011, 14:30
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,744 Times in 2,577 Posts
Default

What's the output of
Code:
ls -la /var/named/chroot/etc/
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 20th April 2011, 00:14
rj3k rj3k is offline
Junior Member
 
Join Date: Apr 2011
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
Default services already started

Thank you Falco.

I badly needed help about this slave DNS. Services is started. But I encounter these errors

[root@localhost ~]# tail /var/log/messages
Apr 19 15:54:40 localhost named[3920]: zone localhost/IN: Transfer started.
Apr 19 15:54:40 localhost named[3920]: transfer of 'localhost/IN' from 192.168.0.1#53: connected using 192.168.0.3#51432
Apr 19 15:54:40 localhost named[3920]: dumping master file: tmp-7V5A5wp2Ae: open: permission denied
Apr 19 15:54:40 localhost named[3920]: transfer of 'localhost/IN' from 192.168.0.1#53: failed while receiving responses: permission denied
Apr 19 15:54:40 localhost named[3920]: transfer of 'localhost/IN' from 192.168.0.1#53: end of transfer
Apr 19 15:56:15 localhost named[3920]: zone now.com/IN: Transfer started.
Apr 19 15:56:15 localhost named[3920]: transfer of 'now.com/IN' from 192.168.0.1#53: connected using 192.168.0.3#38039
Apr 19 15:56:15 localhost named[3920]: dumping master file: /var/named/tmp-VLyh4TPkeW: openermission denied
Apr 19 15:56:15 localhost named[3920]: transfer of 'now.com/IN' from 192.168.0.1#53: failed while receiving responses: permission denied
Apr 19 15:56:15 localhost named[3920]: transfer of 'now.com/IN' from 192.168.0.1#53: end of transfer

Please help.Thanks
Reply With Quote
  #4  
Old 20th April 2011, 14:11
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,744 Times in 2,577 Posts
Default

Is SELinux disabled on both systems?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 20th April 2011, 17:51
rj3k rj3k is offline
Junior Member
 
Join Date: Apr 2011
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
Default SELinux

Hi Falco,

How to verify that? Actually we have Primary & slave DNS already. Both are working fine. So this is a 3rd slave DNS. The reason for me to do this is I'm going to replace the 2nd slave. They are all CENTOS.
Reply With Quote
  #6  
Old 20th April 2011, 17:58
rj3k rj3k is offline
Junior Member
 
Join Date: Apr 2011
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
Default /etc/named.conf

Here's my /etc/named.config

//
//named.conf for Red Hat caching-nameserver
//

options {
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";

/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/

// query-source address * port 53;
allow-transfer {208.99.198.184/32;};
};

//
// a caching only nameserver config
//

controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};

zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };

};


zone "now.com" IN {
type slave;
file "/var/named/now.zone";
// allow-update { none; };
allow-transfer { 192.168.0.1/32; };
masters { 192.168.0.1; };
};

zone "0.168.192.in-addr.arpa" IN {
type slave;
file "/var/named/0.168.192.in-addr.arpa";
// allow-update { none; };
allow-transfer { 192.168.0.1/32; };
masters { 192.168.0.1; };
};


include "/etc/rndc.key";


I encounter this error when I do start the service named


Error in named configuration:
zone localhost/IN: loading master file localhost.zone: file not found
_default/localhost/IN: file not found
Reply With Quote
  #7  
Old 20th April 2011, 23:28
rj3k rj3k is offline
Junior Member
 
Join Date: Apr 2011
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
Default /sbin/service named restart

Stopping named: [ OK ]
Starting named: [FAILED]


I can't figure it out...Please Help...Thanks
Reply With Quote
  #8  
Old 21st April 2011, 13:52
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,744 Times in 2,577 Posts
Default

What are the outputs of
Code:
getenforce
on both systems?

Do you use ISPConfig 3?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
rj3k (21st April 2011)
  #9  
Old 21st April 2011, 17:59
rj3k rj3k is offline
Junior Member
 
Join Date: Apr 2011
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
Default

I just disable the firewall ip tables & it did works...

Thank you falco. Will you be able to suggest a basic or important security on this DNS server?


Thank you.
Reply With Quote
  #10  
Old 21st April 2011, 20:09
rj3k rj3k is offline
Junior Member
 
Join Date: Apr 2011
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
 
Default

C:\Users\1>nslookup 192.168.0.4
Server: UnKnown
Address: 192.168.0.4

*** UnKnown can't find 192.168.0.4: Non-existent domain


here's when I tried in slave dns:

[root@dns03 ~]# nslookup 192.168.0.4
Server: 192.168.0.1
Address: 192.168.0.1#53

** server can't find 4.0.168.192.in-addr.arpa.: NXDOMAIN

But on the primary DNS shows name when I did this.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ispconfig 3 master dns - Plesk slave dns mixian Installation/Configuration 4 23rd June 2010 22:42
DNS data from Standalone servers to Primary DNS server SamTzu Tips/Tricks/Mods 7 15th November 2009 13:38
slave DNS wasim General 2 8th August 2009 19:52
set up two dns with public IP master and slave -crisstm- Installation/Configuration 15 13th December 2008 21:18
DNS problems at installation sdakota Installation/Configuration 0 29th November 2005 19:57


All times are GMT +2. The time now is 13:30.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.