[Pdns-users] lua function to forward query to another server
Marc Boisis
marcboisis at gmail.com
Mon Nov 25 11:29:22 UTC 2019
Hi,
Is it possible to forward query to another server in LUA ?
here is an example :
function postresolve(dq)
m = newDS()
m:add({'toto.fr'})
if ( (m:check(dq.qname))) and (dq.rcode == pdns.NXDOMAIN) )) then
print("forward to my other dns server")
end
return true;
end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/pdns-users/attachments/20191125/c1455f2b/attachment.htm>
More information about the Pdns-users
mailing list