[Pdns-users] Retry NXDOMAIN with a secondary forwarder
Peter van Dijk
peter.van.dijk at netherlabs.nl
Mon Jan 9 11:09:26 UTC 2012
Hello,
On Jan 9, 2012, at 11:43 , Erik Weber wrote:
>>
>> I could do that. How difficult would that be? At the moment I wouldn't know
>> where to start.
>
> Take a look at the sample here: http://doc.powerdns.com/recursor-scripting.html
>
> You'd have to write some lookup code (to the database) and correctly
> build the return packet.
> The first thing I'd do is make some code that does the lookup when run
> directly, then try to fit that into a PowerDNS-script.
>
> Some more info at http://wiki.powerdns.com/trac/wiki/Lua
Be aware that the recursor only runs one instance of Lua, and that you should not be doing any blocking operations in it.
Kind regards,
Peter van Dijk
More information about the Pdns-users
mailing list