[Pdns-users] Correct incantation of followCNAMERecords and follupDomain

Scott Holder scotth at iamscott.net
Tue Mar 24 16:54:14 UTC 2026



> On Mar 24, 2026, at 11:39 AM, Otto Moerbeek <otto at drijf.net> wrote:
> 
>> <snip>
> 
> https://docs.powerdns.com/recursor/lua-scripting/hooks.html#example-script
> shows an example. I believe it should also work in postresolve.
> 
> Looking a bit more, it seems the docs are wrong. followCNAMERecords
> picks up the target from the answers (potentially added by Lua code).
> followupDomain does not play a role.
> 
> If that does not help, can you show us the Lua code you are using. Do
> the logs show anything?
> 
> 	-Otto
> 

Ah hah, I ran across that example and thought I’d tried it, but maybe not. Or I still did it wrong.

In any case, I removed the followup domainDomain and just set the followCNAMERecords and it’s working perfectly now. Docs are definitely a little unclear.

Thanks!

Scott H.


More information about the Pdns-users mailing list