LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-28-2011, 10:30 AM   #1
rhbegin
Member
 
Registered: Oct 2003
Location: Arkansas, NWA
Distribution: Fedora/CentOS/SL6
Posts: 381

Rep: Reputation: 23
Setting up bind in Scientific Linux 6.1 64 bit


I am trying to migrate from CentOS5.5 64 bit to a new Scientific Linux 6.1 server (64 bit) with bind-chroot, bind, bind-utils ect installed.

The new 6.1 server has this directory layout:

[root@ns2 etc]# pwd
/var/named/chroot/etc
[root@ns2 etc]# ls -l
total 12
-rw-r--r--. 1 root root 3543 Nov 28 10:15 localtime
drwxr-x---. 2 root named 4096 Nov 16 12:09 named (directory created in 6.1)
drwxr-xr-x. 3 root root 4096 Nov 28 10:15 pki
[root@ns2 etc]# cd named/
[root@ns2 named]# pwd
/var/named/chroot/etc/named


from the old CentOS 5.5 server

named

[root@ns2 etc]# pwd
/var/named/chroot/etc
[root@ns2 etc]# ls -l
total 72
-rw-r--r-- 1 root root 3543 Jul 20 2010 localtime
-rw-r--r-- 1 root named 51631 Oct 13 10:53 named.conf
-rw-r--r-- 1 root named 174 Aug 24 2010 rndc.conf
-rw-r----- 1 root named 76 Oct 7 2010 rndc.key

I have a symlink to /etc/named.conf

do I create a symlink in the following on the new 6.1 server?

[root@ns2 named]# pwd
/var/named/chroot/etc/named

to [root@ns2 named]# pwd
/etc/named

[root@ns2 named]# pwd
/var/named/chroot/etc/named

I guess my question is do I place the named.conf file in the new 6.1 server in the following directory?

[root@ns2 named]# pwd
/var/named/chroot/etc/named

and the symlink location as well with the named.conf pointing to the /etc/named/named.conf file

has anyone migrated Centos 5 version to 6 and did they run into any problems or changes with your configs?

In the new 6.1 server

[root@ns2 named]# ls -l ; pwd
total 32
drwxr-x---. 6 root named 4096 Nov 28 10:15 chroot
drwxrwx---. 2 named named 4096 Nov 16 12:09 data
drwxrwx---. 2 named named 4096 Nov 16 12:09 dynamic
-rw-r-----. 1 root named 1892 Feb 18 2008 named.ca
-rw-r-----. 1 root named 152 Dec 15 2009 named.empty
-rw-r-----. 1 root named 152 Jun 21 2007 named.localhost
-rw-r-----. 1 root named 168 Dec 15 2009 named.loopback
drwxrwx---. 2 named named 4096 Nov 16 12:09 slaves
/var/named


since I am running in the chroot environment do I need to delete theses files out of the
/var/named directory

a little confused ???

Last edited by rhbegin; 11-28-2011 at 10:39 AM.
 
Old 11-28-2011, 11:02 AM   #2
rhbegin
Member
 
Registered: Oct 2003
Location: Arkansas, NWA
Distribution: Fedora/CentOS/SL6
Posts: 381

Original Poster
Rep: Reputation: 23
I created a named.conf file in the following:

[root@ns2 named]# pwd;ls -l
/var/named/chroot/etc/named
total 104
-rw-r--r--. 1 root named 103089 Nov 28 10:58 named.conf


so would I create the symlink in

[root@ns2 named]# pwd;ls
/etc/named

is this right?

plus the command of service named configtest is no longer available either

that command above is nice for testing a config change before it is committed, not sure why it is not in the distro any longer?

Last edited by rhbegin; 11-28-2011 at 11:04 AM.
 
Old 11-29-2011, 09:48 AM   #3
rhbegin
Member
 
Registered: Oct 2003
Location: Arkansas, NWA
Distribution: Fedora/CentOS/SL6
Posts: 381

Original Poster
Rep: Reputation: 23
When I created the symlink for the named.conf from /var/named/chroot/etc/named/named.conf to /etc/named/named.conf

Has anyone migrated from Centos 5 release to release 6 had any configuration problems?

I am still baffled at where to put the files?
 
Old 12-02-2011, 10:14 AM   #4
rhbegin
Member
 
Registered: Oct 2003
Location: Arkansas, NWA
Distribution: Fedora/CentOS/SL6
Posts: 381

Original Poster
Rep: Reputation: 23
Has anyone migrated from CentOS 5 to 6 with bind?
 
Old 12-02-2011, 11:16 AM   #5
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
I can't say I have migrated, but I had set up DNS with CentOS 6.

Whenever there was a problem with "named.conf" the Log file /var/log/messages
has got all the info I needed to resolve it step by step.

So if you have any messages in your Log file, write them here and someone might take a look and help you.


good luck.
 
  


Reply



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
[SOLVED] Installing 32 bit RPMs on 64 bit Linux conflicts with 64 bit packages gheibia Linux - Server 1 08-18-2011 01:33 AM
Setting up bind on Scientific Linux 6 rhbegin Linux - Server 3 06-28-2011 10:28 AM
Trying to install phpmyadmin on Scientific Linux 6 (64-bit) rhbegin Linux - Software 2 05-20-2011 07:15 AM
Scientific Linux 5.3 64 bit Install problems ljlinde Linux - Distributions 0 07-08-2009 07:32 PM
Setting up bind 9.2.1 jose_bravo Linux - Networking 2 12-29-2002 06:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:48 AM.

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