[Pdns-users] [Q] pdsn recursor chroot environment error : rec_control = Fatal: Unable to receive message over control channel: Success
J4K
junk4 at klunky.co.uk
Thu Oct 27 13:57:58 UTC 2011
Hi there,
I have a small question about running the recusor in a chroot
environment. It will be used to provide postfix and spamassassin with
RBLs.
It works fine, but is inaccessable via the rec_control command:
# rec_control --socket-dir=/var/spool/powerdns/var/run ping
Fatal: Unable to receive message over control channel: Success
I have set up the chroot to allow acesss to socket and pid files:
root at sa51 /var/spool/powerdns/var/run # ls -l
total 0
lrwxrwxrwx 1 root root 36 Oct 27 15:37 pdns_recursor.controlsocket ->
/var/run/pdns_recursor.controlsocket
lrwxrwxrwx 1 root root 26 Oct 27 15:37 pdns_recursor.pid ->
/var/run/pdns_recursor.pid
The files exist:
srwxr-xr-x 1 root root 0 Oct 27 15:38 /var/run/pdns_recursor.controlsocket
srwxr-xr-x 1 root root 0 Oct 27 15:38 /var/run/pdns_recursor.controlsocket
Process is running:
pdns 20091 1 0 15:38 ? 00:00:00 /usr/sbin/pdns_recursor
--daemon
The recursor.conf has:
allow-from=127.0.0.0/8,::1/128
chroot=./
config-dir=/etc/powerdns/
max-cache-entries=10000
max-cache-ttl=1440
max-negative-ttl=900
max-packetcache-entries=5000
setgid=pdns
setuid=pdns
The /etc/passwd entry is:
pdns:x:115:120:PowerDNS,,,:/var/spool/powerdns:/bin/false
The O/S is Debian Squeeze
Linux sa51 2.6.32-5-amd64 #1 SMP Mon Oct 3 03:59:20 UTC 2011 x86_64
GNU/Linux
Does anyone know how to get this running correctly in a chrooted
environment?
Cheers,
S
More information about the Pdns-users
mailing list