Cannot get it running as pipe for pdns 4.1
jahlives opened this issue · comments
Tobi commented
Hi
I installed pdns-backend-pipe and pdns (4.1.0) from https://repo.powerdns.com/ on a Centos7 (64bit) and tried to get PyPdnsRedis up an running. If I call the script manually I can add rr and query them
$ /work/pdns_redis.py -R 127.0.0.1:6379 -D mydomain.tld -r A -d 'myipaddress' -a 3600
$ /work/pdns-redis.py -R 127.0.0.1:6379 -D mydomain.tld -r A -q
[(mydomain.tld', 'A', '3600', 'myipaddress')]
But when I try to glue it together with PDNS via /etc/pdns/pdns.conf
launch=pipe
pipe-command=/work/pdns-redis.py -R 127.0.0.1:6379 -P
pipe-timeout=5000
loglevel=7
and query via pdns I get a SERVFAIL answer and the following in the logs
[PIPEBackend] Child closed pipe
Backend reported permanent error which prevented lookup (Child closed pipe), aborting
Backend error (retry once): Child closed pipe
Backend launched with banner: FAIL
Tobi commented
solved :-)
Had to explicitly add
pipe-abi-version=2
in pdns.conf. Default seems to be 1
For older versions of pdns set
pipebackend-abi-version=2