pagekite / pypdnsredis Goto Github PK
View Code? Open in Web Editor NEWA redis-backed pipe-backend for PowerDNS
Home Page: http://pagekite.net/wiki/Floss/PyPdnsRedis/
A redis-backed pipe-backend for PowerDNS
Home Page: http://pagekite.net/wiki/Floss/PyPdnsRedis/
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
I use pdns_redis.py on my server which runs a redis slave instance. If I just query pdns for a record I get SERVFAIL and in the logs
Dec 9 23:21:18 rbl3 pdns_server: Coprocess: Internal Error: You can't write against a read only slave.
Dec 9 23:21:18 rbl3 pdns_server: [PIPEBackend] coprocess returned a FAIL
Dec 9 23:21:18 rbl3 pdns_server: Backend reported condition which prevented lookup (coprocess returned a FAIL) sending out servfail
I just wonder if its really necessary to write to redis in case of answering a query?
I tried the -R
and -W
parameters but the error persists. So for me it seems that -W
does not have any effect. I pointed it to the master redis but still got the error upon querying.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.