You are not logged in.

#1 2008-03-29 15:06:47

russ0r
Member
Registered: 2008-03-29
Posts: 26

bind problems

Hey
I've just set up bind on my Arch box, but I can't get it to run as the named user.
I get this in /var/log/errors.log:

Mar 29 14:51:11 vostok named[10422]: none:0: open: /etc/named.conf: file not found

I've checked permissions and ownership on /etc/named.conf, and it's fine:

[root@vostok etc]# ls -l named.conf
-rw-rw---- 1 named named 408 2008-03-29 14:24 named.conf


So I'm a bit puzzled as to what the problem is?
I had a quick google about but most of the issues seem to be with BSD and running with fakeroot, something which I don't know a great deal about.

I can run named fine as root, but obviously I'd rather not.

Any help appreciated.

Last edited by russ0r (2008-03-29 15:07:42)

Offline

#2 2008-03-29 15:29:56

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: bind problems

cat /etc/conf.d/named 
#
# Parameters to be passed to BIND
#
NAMED_ARGS="-u named"

Offline

#3 2008-03-29 15:39:09

russ0r
Member
Registered: 2008-03-29
Posts: 26

Re: bind problems

Cheers brebs. Changed /etc/conf.d/named to yours above, then I got:

Mar 29 15:31:02 vostok named[10567]: couldn't open pid file '/var/run/named.pid': Permission denied
Mar 29 15:31:02 vostok named[10567]: exiting (due to early fatal error)

in /var/log/daemon.log.

So under 'options' in /etc/named.conf I put:

pid-file "/var/run/named/named.pid";

And it works now smile

Thanks.

Offline

Board footer

Powered by FluxBB