Code Monkey home page Code Monkey logo

pypdnsredis's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

pypdnsredis's Issues

Cannot get it running as pipe for pdns 4.1

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

Just query requires write access to redis

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.