LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-04-2008, 11:49 AM   #1
Ghostwheel
Member
 
Registered: Jun 2004
Location: Mid Michigan
Distribution: CentOS, Ubuntu
Posts: 41

Rep: Reputation: 0
CentOS5: Error starting bind using chroot


The error I am getting:

Starting named:
Error in named configuration:
none:0: open: /etc/named.conf: invalid file
[FAILED]


The setup:

CentOS 5, latest updates

/etc/named.conf
/var/named/chroot/etc/named.conf //symbolic link to above
/var/named/chroot/var/named/* //Zone files

named.conf options section:

options
{
directory "/var/named";
pid-file "/var/run/named/named.pid";
check-names response ignore;
transfers-per-ns 2;
transfers-in 10;
max-transfer-time-in 90;
cleaning-interval 60;
allow-transfer { <my server's IP's> };
};


The story:

I am moving my dns servers to new hardware and I thought I would incorporate chroot jail for some added protection. The configs have come from my currently working DNS servers. The only changes I have made is to move the zone files into a more standard place and changed named.conf to reflect that.

Any ideas? I have tried changing the directory entry to be absolute from root rather than relative from chroot but that didn't work either. I would be happy to provide any other necessary info.

Thanks!
 
Old 02-04-2008, 12:42 PM   #2
frndrfoe
Member
 
Registered: Jan 2008
Distribution: RHEL, CentOS, Ubuntu
Posts: 379

Rep: Reputation: 38
From what I understand...
You say that /var/named/chroot/etc/named.conf is a symlink to /etc/named.conf
It should be the other way around unless I am confused.
Here is what I have working on RHEL4 machine running BIND 9.2.4

Code:
# ls -l /etc/named.conf
lrwxrwxrwx  1 root root 32 Nov 28 22:33 /etc/named.conf -> /var/named/chroot/etc/named.conf

]# ls -l /var/named/chroot/etc/named.conf
-rw-r--r--  1 root named 2415 Nov  5 09:15 /var/named/chroot/etc/named.conf
then again maybe I am misunderstanding.
 
Old 02-04-2008, 12:48 PM   #3
Ghostwheel
Member
 
Registered: Jun 2004
Location: Mid Michigan
Distribution: CentOS, Ubuntu
Posts: 41

Original Poster
Rep: Reputation: 0
That fixed it. Thank you for the help!!
 
  


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
chroot and bind rickl Linux - General 2 01-12-2011 02:21 PM
log with bind ( chroot ) pk_kala Linux - Server 1 12-07-2007 04:12 AM
yum Error: NetworkManager conflicts with bind-chroot btb Fedora 1 10-21-2005 03:55 AM
Bind chroot problem dementiaa Linux - Software 3 12-26-2004 04:14 AM
Bind 9 - Chroot problems Nauseous Linux - Networking 2 11-01-2003 04:51 AM

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

All times are GMT -5. The time now is 01:52 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