Re: Sending Custom Response of DNS Queries
bert hubert <[email protected]> Thu, 5 Oct 2017 13:57:17 +0200
| Newsgroups | gmane.network.dns.powerdns.devel |
|---|---|
| Message-ID | <[email protected]> |
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 _______________________________________________ Pdns-dev mailing list [email protected] https://mailman.powerdns.com/mailman/listinfo/pdns-dev