[Pdns-dev] Sending Custom Response of DNS Queries
bert hubert
bert.hubert at powerdns.com
Thu Oct 5 11:57:17 UTC 2017
On Thu, Oct 05, 2017 at 04:54:32PM +0500, Saeed Ahmed wrote:
> Hi,
> I am using pdns_recursor-4.0.5. Here, what I wanna do is when a client
> queries the server, I want to intercept the request, and before any
> processing, do some check and on certain condition send response back to
> client having specific host address (e.g my own server hosting some site)
> without further sending query to authoritative name servers.
Hi Saeed,
I recommend the documentation on: https://doc.powerdns.com/recursor/lua-scripting/index.html
And: https://doc.powerdns.com/recursor/lua-scripting/hooks.html#example-script
This describes how to write such scripts.
Bert
More information about the Pdns-dev
mailing list