Comments on Installation Of BIND As A Secondary (Slave) DNS Server On CentOS
Installation Of BIND As A Secondary (Slave) DNS Server On CentOS After we have installed BIND as a master DNS server (NS1), we can now try to set up a secondary DNS server (NS2) with BIND on CentOS. NS2 acts as a backup if there are problems with NS1.
6 Comment(s)
Comments
I created another slave DNS & here's the error I've got, I followed the intructions from 1 to 4.
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
read this comment! ;-)
https://www.howtoforge.com/bind-installation-on-centos#comment-23477
you are missing the named.conf file in your chroot directory.
cp /var/named/named.conf /path/to/your/chrooted-named
Thank you for the post..worked for me..though, I used 770 on /var/named. Thanks again. :)
The Worst Outcome
The worst that can happen as a result of using 777 permissions on a folder or even a file, is that if a malicious cracker or entity is able to upload a devious file or modify a current file to execute code, they will have complete control over your blog, including having your database information and password.
http://codex.wordpress.org/Changing_File_Permissions#The_dangers_of_777
The above information is largely against lots of security and maintainability principles. 1. No use of chroot'ed bind.2. chmod 777 ??? Really ??? Do you want any user to change your config ?? 3. All configuration in a single conf file?? Even the comments in those files tell you not to do it !