[Pdns-users] low TTL, recursor and preresolve
Kenneth Marshall
ktm at rice.edu
Thu Mar 17 17:50:00 UTC 2011
On Thu, Mar 17, 2011 at 10:44:37AM -0700, Alfred B. M. Cordero wrote:
> There was a suggestion to try to alter a low TTL using the lua
> feature.
> This may be common knowledge but it may help someone else.
>
> The preresolve function takes a request and does something based on
> some conditional, then returns the result. If the condition isn't
> met then the query proceeds as normal. When the condition is met
> then that's the end of the query and some defaults are returned
> along with anything you want to alter. But no ip address, etc. is
> returned as a query never happened, preresolve intercepted the
> query. The real feature needed will be the postresolve feature.
> Then just ttl can be modified and returned with all the other data.
>
You might be interested in this pre-release version that supports
what I described:
http://mailman.powerdns.com/pipermail/pdns-users/2010-November/007190.html
Cheers,
Ken
More information about the Pdns-users
mailing list