LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-01-2003, 01:48 AM   #1
Nauseous
LQ Newbie
 
Registered: Apr 2003
Posts: 9

Rep: Reputation: 0
Bind 9 - Chroot problems


Hey all.

Just trying to compile bind 9.2.3 on a redhat 9 box. I have followed the tutorial given on this page

http://www.unixwiz.net/techtips/bind9-chroot.html
This was the first error recieved, which i fixed by running bind with the -c switch.

Nov 1 17:10:59 server named[10180]: starting BIND 9.2.3
Nov 1 17:10:59 server named[10180]: using 1 CPU
Nov 1 17:10:59 server named[10180]: loading configuration from '/usr/local/etc/named.conf'
Nov 1 17:10:59 server named[10180]: none:0: open: /usr/local/etc/named.conf: file not found
Nov 1 17:10:59 server named[10180]: loading configuration: file not found
Nov 1 17:10:59 server named[10180]: exiting (due to fatal error)


This is the error below that i am now recieving. Any help would be appreciated.

Nov 1 17:33:57 server named[1261]: loading configuration from '/etc/named.conf'
Nov 1 17:33:57 server named[1261]: listening on IPv4 interface lo, 127.0.0.1#53
Nov 1 17:33:57 server named[1261]: listening on IPv4 interface eth0, 192.168.0.1#53
Nov 1 17:33:57 server named[1261]: none:0: open: /usr/local/etc/rndc.key: file not found
Nov 1 17:33:57 server named[1261]: couldn't add command channel 127.0.0.1#953: file not found
Nov 1 17:33:58 server named[1261]: zone 0.0.127.in-addr.arpa/IN: loaded serial 1
Nov 1 17:33:58 server named[1261]: zone localhost/IN: loaded serial 42
Nov 1 17:33:58 server named[1261]: running
 
Old 11-01-2003, 02:55 AM   #2
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
Well in the chroot directory recreate the directory structure and put the files in there ... also run bind non chrooted and make use of the lsof command to see which data files and libraries it depends on.
 
Old 11-01-2003, 04:51 AM   #3
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
You need to copy rndc.key to the etc directory where BIND is being chrooted. Once it chroots it cannot read files outside it's own root, so you have to make sure there's a local copy with the correct path.

Example:
named will be chroot'd to /var/named
using the above config files (/usr/local/etc/rndc.key)
you would need to put it here:
/var/named/usr/local/etc/rndc.key
same with named.conf
 
  


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
chroot and bind rickl Linux - General 2 01-12-2011 02:21 PM
yum Error: NetworkManager conflicts with bind-chroot btb Fedora 1 10-21-2005 03:55 AM
Fedora bind-chroot permissions wrong rhoekstra Linux - Networking 1 08-07-2005 09:47 PM
Chroot bind 9.3.0 in slackware 10 - noobie houler Linux - Security 8 04-01-2005 05:53 PM
Bind chroot problem dementiaa Linux - Software 3 12-26-2004 04:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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