PIPE-BACKEND-USE<br><br>hello<br><br>i'm trying to work with pipe-backend<br>i managed to send response from a perl script but with ip addresses declared in the source code<br><br>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 <a href="http://www.example.com">www.example.com</a> for instance<br>
<br>it could be in perl,or even in sh if someone already made it<br><br><br><br>anyone has one "already working" solution where i could start from?<br><br>thank you for your help<br><br><br><br><div class="gmail_quote">
2011/3/27 <span dir="ltr"><<a href="mailto:pdns-users-request@mailman.powerdns.com">pdns-users-request@mailman.powerdns.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Send Pdns-users mailing list submissions to<br>
<a href="mailto:pdns-users@mailman.powerdns.com">pdns-users@mailman.powerdns.com</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="http://mailman.powerdns.com/mailman/listinfo/pdns-users" target="_blank">http://mailman.powerdns.com/mailman/listinfo/pdns-users</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:pdns-users-request@mailman.powerdns.com">pdns-users-request@mailman.powerdns.com</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:pdns-users-owner@mailman.powerdns.com">pdns-users-owner@mailman.powerdns.com</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Pdns-users digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Mongo DB and PowerDNS part 2 (fredrik danerklint)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Sat, 26 Mar 2011 17:36:14 +0100<br>
From: fredrik danerklint <<a href="mailto:fredan-pdns@fredan.org">fredan-pdns@fredan.org</a>><br>
Subject: [Pdns-users] Mongo DB and PowerDNS part 2<br>
To: <a href="mailto:pdns-users@mailman.powerdns.com">pdns-users@mailman.powerdns.com</a><br>
Message-ID: <<a href="mailto:201103261736.14443.fredan-pdns@fredan.org">201103261736.14443.fredan-pdns@fredan.org</a>><br>
Content-Type: text/plain; charset="us-ascii"<br>
<br>
This is from native backend with MongoDB!<br>
<br>
$ dig <a href="http://www.example.com" target="_blank">www.example.com</a> A @<a href="http://127.0.0.1" target="_blank">127.0.0.1</a> -p5300<br>
<br>
; <<>> DiG 9.7.1-P2 <<>> <a href="http://www.example.com" target="_blank">www.example.com</a> A @<a href="http://127.0.0.1" target="_blank">127.0.0.1</a> -p5300<br>
;; global options: +cmd<br>
;; Got answer:<br>
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 55603<br>
;; flags: qr aa rd; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 0<br>
;; WARNING: recursion requested but not available<br>
<br>
;; QUESTION SECTION:<br>
;<a href="http://www.example.com" target="_blank">www.example.com</a>. IN A<br>
<br>
;; ANSWER SECTION:<br>
<a href="http://www.example.com" target="_blank">www.example.com</a>. 3600 IN CNAME <a href="http://webserver.example.com" target="_blank">webserver.example.com</a>.<br>
<a href="http://webserver.example.com" target="_blank">webserver.example.com</a>. 3600 IN A 1.2.3.4<br>
<a href="http://webserver.example.com" target="_blank">webserver.example.com</a>. 3600 IN A 1.2.3.5<br>
<a href="http://webserver.example.com" target="_blank">webserver.example.com</a>. 3600 IN A 1.2.3.6<br>
<br>
;; Query time: 7 msec<br>
;; SERVER: 127.0.0.1#5300(127.0.0.1)<br>
;; WHEN: Sat Mar 26 16:06:15 2011<br>
;; MSG SIZE rcvd: 105<br>
<br>
The content of the database looks like this:<br>
<br>
{ "domain_id" : 1, "name" : "<a href="http://example.com" target="_blank">example.com</a>", "type" : "SOA", "ttl" : 3600,<br>
"content" : ["<a href="http://ahu.example.com" target="_blank">ahu.example.com</a> <a href="http://ns1.example.com" target="_blank">ns1.example.com</a> 2008080300 1800 3600 604800<br>
3600"] }<br>
{ "domain_id" : 1, "name" : "<a href="http://example.com" target="_blank">example.com</a>", "type" : "TXT", "ttl" : 3600,<br>
"content" : [ "hallo allemaal!"] }<br>
{ "domain_id" : 1, "name" : "<a href="http://example.com" target="_blank">example.com</a>", "type" : "NS", "ttl" : 3600,<br>
"content" : ["<a href="http://ns1.example.com" target="_blank">ns1.example.com</a>", "<a href="http://ns2.example.com" target="_blank">ns2.example.com</a>"] }<br>
{ "domain_id" : 1, "name" : "<a href="http://webserver.example.com" target="_blank">webserver.example.com</a>", "type" : "A", "ttl" :<br>
3600, "content" : ["1.2.3.4", "1.2.3.5", "1.2.3.6" ] }<br>
{ "domain_id" : 1, "name" : "<a href="http://www.example.com" target="_blank">www.example.com</a>", "type" : "CNAME", "ttl" : 3600,<br>
"content" : ["<a href="http://webserver.example.com" target="_blank">webserver.example.com</a>"] }<br>
<br>
--<br>
//fredan<br>
<br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
Pdns-users mailing list<br>
<a href="mailto:Pdns-users@mailman.powerdns.com">Pdns-users@mailman.powerdns.com</a><br>
<a href="http://mailman.powerdns.com/mailman/listinfo/pdns-users" target="_blank">http://mailman.powerdns.com/mailman/listinfo/pdns-users</a><br>
<br>
<br>
End of Pdns-users Digest, Vol 98, Issue 22<br>
******************************************<br>
</blockquote></div><br>