LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 04-05-2011, 12:56 PM   #1
rj3k
LQ Newbie
 
Registered: Feb 2011
Posts: 7

Rep: Reputation: 0
Setting up 3rd DNS


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.

Thank you.
 
Old 04-05-2011, 02:00 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
Old 04-05-2011, 06:05 PM   #3
rj3k
LQ Newbie
 
Registered: Feb 2011
Posts: 7

Original Poster
Rep: Reputation: 0
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?

Thank you.
 
Old 04-06-2011, 10:49 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
Old 04-06-2011, 02:09 PM   #5
rj3k
LQ Newbie
 
Registered: Feb 2011
Posts: 7

Original Poster
Rep: Reputation: 0
Hi

Installing 3rd DNS, what master am I going to use? the DNS2 or the primary?If primary, is this wouldn't affect the DNS2?

Thank you.
 
Old 04-06-2011, 02:41 PM   #6
rj3k
LQ Newbie
 
Registered: Feb 2011
Posts: 7

Original Poster
Rep: Reputation: 0
I'm getting this error:

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?
 
Old 04-06-2011, 04:07 PM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
1 members found this post helpful.
Old 04-06-2011, 04:07 PM   #8
savona
Member
 
Registered: Mar 2011
Location: Bellmawr, NJ
Distribution: Red Hat / Fedora
Posts: 215

Rep: Reputation: 66
Quote:
Originally Posted by rj3k View Post
I'm getting this error:

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?
You have two / in the path:

/var/named/chroot//etc/named.conf
 
Old 04-06-2011, 04:11 PM   #9
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Quote:
Originally Posted by savona View Post
You have two / in the path:

/var/named/chroot//etc/named.conf
that won't necessarily be a problem. More likely that the file really doesn't exist.
 
Old 04-06-2011, 05:14 PM   #10
rj3k
LQ Newbie
 
Registered: Feb 2011
Posts: 7

Original Poster
Rep: Reputation: 0
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.

Thank you for your help.
 
Old 04-06-2011, 05:22 PM   #11
jmc1987
Member
 
Registered: Sep 2009
Location: Oklahoma
Distribution: Debian, CentOS, windows 7/10
Posts: 893

Rep: Reputation: 119Reputation: 119
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
 
Old 04-07-2011, 02:12 AM   #12
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
Old 04-07-2011, 10:57 AM   #13
jmc1987
Member
 
Registered: Sep 2009
Location: Oklahoma
Distribution: Debian, CentOS, windows 7/10
Posts: 893

Rep: Reputation: 119Reputation: 119
Quote:
Originally Posted by acid_kewpie View Post
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.
 
Old 04-12-2011, 10:23 AM   #14
rj3k
LQ Newbie
 
Registered: Feb 2011
Posts: 7

Original Poster
Rep: Reputation: 0
Thank you jmc...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
setting up dns man_msc Linux - Networking 1 08-04-2006 05:41 AM
DNS setting superraylo Linux - Software 1 06-03-2006 06:29 AM
setting up DNS sjpatel Linux - Networking 4 02-09-2006 02:51 PM
DNS setting Eddie9 Linux - General 1 04-21-2002 09:48 PM
setting up DNS deepak Linux - Networking 4 03-31-2001 12:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration