[Pdns-users] Pdns-users Digest, Vol 98, Issue 22

jean delestre jean.delestre at gmail.com
Sun Apr 3 14:53:54 UTC 2011


PIPE-BACKEND-USE

hello

i'm trying to work with pipe-backend
i managed to send response from a perl script but with ip addresses declared
in the source code

i'm looking for a simple pdns script that would read ip address dynamicaly
from a file (absolute path) and respond it to A query of www.example.com for
instance

it could be in perl,or even in sh if someone already made it



anyone has one "already working" solution where i could start from?

thank you for your help



2011/3/27 <pdns-users-request at mailman.powerdns.com>

> Send Pdns-users mailing list submissions to
>        pdns-users at mailman.powerdns.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        http://mailman.powerdns.com/mailman/listinfo/pdns-users
> or, via email, send a message with subject or body 'help' to
>        pdns-users-request at mailman.powerdns.com
>
> You can reach the person managing the list at
>        pdns-users-owner at mailman.powerdns.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Pdns-users digest..."
>
>
> Today's Topics:
>
>   1. Mongo DB and PowerDNS part 2 (fredrik danerklint)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sat, 26 Mar 2011 17:36:14 +0100
> From: fredrik danerklint <fredan-pdns at fredan.org>
> Subject: [Pdns-users] Mongo DB and PowerDNS part 2
> To: pdns-users at mailman.powerdns.com
> Message-ID: <201103261736.14443.fredan-pdns at fredan.org>
> Content-Type: text/plain;  charset="us-ascii"
>
> This is from native backend with MongoDB!
>
> $ dig www.example.com A @127.0.0.1 -p5300
>
> ; <<>> DiG 9.7.1-P2 <<>> www.example.com A @127.0.0.1 -p5300
> ;; global options: +cmd
> ;; Got answer:
> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 55603
> ;; flags: qr aa rd; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 0
> ;; WARNING: recursion requested but not available
>
> ;; QUESTION SECTION:
> ;www.example.com.               IN      A
>
> ;; ANSWER SECTION:
> www.example.com.        3600    IN      CNAME   webserver.example.com.
> webserver.example.com.  3600    IN      A       1.2.3.4
> webserver.example.com.  3600    IN      A       1.2.3.5
> webserver.example.com.  3600    IN      A       1.2.3.6
>
> ;; Query time: 7 msec
> ;; SERVER: 127.0.0.1#5300(127.0.0.1)
> ;; WHEN: Sat Mar 26 16:06:15 2011
> ;; MSG SIZE  rcvd: 105
>
> The content of the database looks like this:
>
> { "domain_id" : 1, "name" : "example.com", "type" : "SOA", "ttl" : 3600,
> "content" : ["ahu.example.com ns1.example.com 2008080300 1800 3600 604800
> 3600"] }
> { "domain_id" : 1, "name" : "example.com", "type" : "TXT", "ttl" : 3600,
> "content" : [ "hallo allemaal!"] }
> { "domain_id" : 1, "name" : "example.com", "type" : "NS", "ttl" : 3600,
> "content" : ["ns1.example.com", "ns2.example.com"] }
> { "domain_id" : 1, "name" : "webserver.example.com", "type" : "A", "ttl" :
> 3600, "content" : ["1.2.3.4", "1.2.3.5", "1.2.3.6" ] }
> { "domain_id" : 1, "name" : "www.example.com", "type" : "CNAME", "ttl" :
> 3600,
> "content" : ["webserver.example.com"] }
>
> --
> //fredan
>
>
> ------------------------------
>
> _______________________________________________
> Pdns-users mailing list
> Pdns-users at mailman.powerdns.com
> http://mailman.powerdns.com/mailman/listinfo/pdns-users
>
>
> End of Pdns-users Digest, Vol 98, Issue 22
> ******************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/pdns-users/attachments/20110403/5aec3750/attachment.html>


More information about the Pdns-users mailing list