Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-29-2007, 01:45 PM   #1
LQ Newbie
Registered: May 2006
Posts: 1

Rep: Reputation: 0
bind9 failed - bindnamed: chroot(): no such file or directory

My platform is Debian Etch, and installed bind9-3.4-2. When I manually start /etc/init.d/bind9, the name server failed. Any help?
My steps: edited /etc/default/bind9, adding OPTIONS="-u bind -t /var/lib/named"
mkdir -p /var/lib/named/etc
mkdir /var/lib/named/dev
mkdir -p /var/lib/named/var/cache/bind
mkdir -p /var/lib/named/var/run/bind/run
mv /etc/bind /var/lib/named/etc
ln -s /var/lib/named/etc/bind /etc/bind
mknod /var/lib/named/dev/null c 1 3
mknod /var/lib/named/dev/random c 1 8
chmod 666 /var/lib/named/dev/null /var/lib/named/dev/random
chown -R bind:bind: /var/lib/named/var/*
chown -R bind:bind /var/lib/named/etc/bind

edited /etc/default/syslogd: SYSLOGD="-a /var/lib/named/dev/log"

mknod /var/lib/named/dev/zero c 1 5
chmod 666 /var/lib/named/dev/zero

When I do /etc/init.d/bind9 start, I get:Starting domain name service...: bindnamed: chroot(): No such file or directory Failed!

Thanks for any enlightenment.
Old 05-29-2007, 03:16 PM   #2
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,986
Blog Entries: 14

Rep: Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187
What happens if you run:

named -u bind -t /var/lib/named

instead of running the init script?

The above has the options you gave and I don't see anything wrong with your steps. If you still get the error about chroot then it likely means the init script is OK. If you do NOT get the error then it suggests the init script isn't reading the options you put in the default file for some reason and may be trying to set something other than /var/lib/named as the chroot directory.


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
Bind9: NDC command failed : rndc: connect failed: connection refused Boudewijn Linux - Networking 19 01-02-2014 07:19 AM
chroot: No such file or directory PROBLEM seraph-seph Slackware 11 06-02-2010 07:31 AM
snmpd failed: No such file or directory kav Red Hat 8 04-09-2007 01:16 PM
Simple chroot Bind9 setup? canegames Linux - Software 1 06-30-2006 05:08 AM
chroot: cannot run command `/tools/bin/env': No such file or directory Basel Linux From Scratch 5 06-30-2006 03:00 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:14 PM.

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