Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
We do have primary & backup DNS both are running in Linux. I'm planning install the 3rd DNS & move the DNS02 to this server(DNS03)& remove the DNS02 later. Ho can I do move all the information & configuration of DNS02 to the new server? Can someone help me on these steps configuring the DNS03 & removing DNS02.
We can't help you with such a broad request and so little information. Read standard documentation for bind and go from there. OR just lift and shift /etc /named.conference and all files referenced in it, changing IP addresses as applicable.
I'm starting to install CentOS 5.5 after this I will start to configure the 3rd DNS. As I have said we have primary & secondary. What is the first step to do this 3rd DNS configuration? Do you know the link of this standard docs?
Just Google for "bind howto" we aren't here to do such basic things for you. There is no such thing as a 3rd server configuration. You need to understand what you're doing. It is too complex and personalized for us to guide you like that and you should already appreciate that.
service named restart
Stopping named: [ OK ]
Locating /var/named/chroot//etc/named.conf failed:
[FAILED]
If I'm going to point the DNS03 to master, is this would affect the DNS2?
I have no idea. You have said *NOTHING* about what these servers are. You are talking as if "DNS2" means something, when it does not. You mentioned one is a "backup" server. What does that mean? Is it a slave? That's not a backup. You need to understand DNS before you continue, there is no point asking us these questions as they do not make sense. We can help you with *specific* issues, and you need to understand what the questions you're asking means, and that they do mean something in the first place.
service named restart
Stopping named: [ OK ]
Locating /var/named/chroot//etc/named.conf failed:
[FAILED]
If I'm going to point the DNS03 to master, is this would affect the DNS2?
Sorry to confused you DNS02 is the slave server. So I'm creating another slave(DNS03). Right now I'm getting this error.
[root@localhost ~]# chmod 777 -Rvf /var/named/
mode of `/var/named/' retained as 0777 (rwxrwxrwx)
mode of `/var/named/domain.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/nanofibre.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]
There's files on that folder. I don't know what's wrong.
Okay your 3rd DNS server is going to slave on your main dns server. Your error you are getting is saying that you do not have named.conf created yet. There are sample configs in /usr/share/bind-9.x.x/sample. If you installed bind and configured it and then had chroot installed your config file may also be in /etc/named.conf so just move that file to /var/named/chroot/etc/named.conf.
the named.conf is a complex config file so be sure to read your docs in /usr/share/bind-9.x.x/arm. Please note where you see where I put bind-9.x.x the x it your version number
So you've provided us a list of *EVERY* file under /var/named/chroot and very very clearly the file in the error message is NOT there. What's not to understand? And why on earth did you chmod 777 the whole thing? That's just awful awful systems administration.
So you've provided us a list of *EVERY* file under /var/named/chroot and very very clearly the file in the error message is NOT there. What's not to understand? And why on earth did you chmod 777 the whole thing? That's just awful awful systems administration.
You are very right. He just allowed any user on the system to modify DNS. I guess its a good thing He doesn't have it set up.
To OP:
I would start fresh and do this
# rm -rf /var/named
# yum groupremove "DNS Name Server"
# yum groupinstall "DNS Name Server"
This should recreate your directories. The easy way. Never Ever chmod files 777 unless you want others to be able to modify them.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.