[Pdns-users] Correct incantation of followCNAMERecords and follupDomain
Scott Holder
scotth at iamscott.net
Tue Mar 24 13:54:23 UTC 2026
Hey folks,
I’m working on a thing where we’re basically tearing apart a DNS response and replacing the entire thing with a CNAME to an internal address. I’ve managed to get It to replace the answer section with the CNAME, but that’s all the answer section ends up with which leads to it not actually resolving. It doesn’t seem to be doing any CNAME chasing or continuation.
It sounds like the dq.followupFunction of followCNAMERecords and giving it a followupDomain should be exactly what I need, but I can’t quite figure out where to add it and the specific format. I’ve tried a few different spots and only ever get an “Unknown Lua error” when trying to do a dig. Do they work in the postresolve section? Is there some trick to where they need to live in the Lua script? Am I misunderstanding what they’re supposed to do all together?
Thanks!
Scott H.
More information about the Pdns-users
mailing list