I really love the simplicity of pipe backend and why I use powerdns instead of say bind, all you need to really do is add this to your pdns.conf:<div><br></div><div><div>launch=pipe,bind</div><div>pipe-command=/etc/powerdns/dns_pipe.rb</div>
<div><br></div><div>And in your script, you can have something as simple as:</div><div><br></div><div><div>require 'powerdns_pipe'</div><div>PowerDNS::Pipe.new.run! do</div><div> answer :name => <a href="http://question.name">question.name</a>, :type => 'A', :ttl => 60, :content => '1.2.3.4'</div>
<div>end</div></div><div><br></div><div>The above is an example written in Ruby, but really it just reads DNS requests from STDIN and writes DNS responses to STDOUT. You can add any custom code that will figure out the IP to your question - in my case I plan to query a RESTFUL Rails API.</div>
<div><br></div><div>Roman</div><br><div class="gmail_quote">On 4 February 2013 09:29, RBK1001 <span dir="ltr"><<a href="mailto:Paul.Sun@syniverse.com" target="_blank">Paul.Sun@syniverse.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Hi<br>
<br>
Thank for the information.<br>
<br>
I have a bit confused on the the pipebackend and bind backend, which one<br>
should I use?<br>
<br>
- rbk<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
Ruben '_cyclops_' d'Arco wrote:<br>
><br>
> Hi,<br>
><br>
> This should be helpful as a first start:<br>
> <a href="http://doc.powerdns.com/backend-writers-guide.html" target="_blank">http://doc.powerdns.com/backend-writers-guide.html</a><br>
><br>
> Also have a look at the regression-test direcory, as it is quiet helpul<br>
> for testing your backend.<br>
><br>
> Regards,<br>
> Ruben<br>
><br>
> RBK1001 <<a href="mailto:Paul.Sun@syniverse.com">Paul.Sun@syniverse.com</a>> wrote:<br>
><br>
>><br>
>>Hi<br>
>><br>
>>we would like to seek for an advice on the use of backend.<br>
>><br>
>>we understood that PowerDNS offers several backend solutions, however,<br>
>>I<br>
>>would like to know is there a way to connect to our customerized<br>
>>backend?<br>
>>Currently, we are using a non-sql customerized backend with large<br>
>>amount of<br>
>>data stored, and we would like to intergrate powerdns with it, is there<br>
>>anyway we can do?<br>
>><br>
>>- rbk<br>
><br>
> --<br>
> Regards,<br>
> Ruben<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>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
View this message in context: <a href="http://old.nabble.com/PowerDNS-backend-tp34979116p34979385.html" target="_blank">http://old.nabble.com/PowerDNS-backend-tp34979116p34979385.html</a><br>
</font></span><div class="im HOEnZb">Sent from the PowerDNS mailing list archive at Nabble.com.<br>
<br>
</div><div class="HOEnZb"><div class="h5">_______________________________________________<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>
</div></div></blockquote></div><br></div>