[Pdns-users] Lau2 backend, and query refused errors

Otto Moerbeek otto at drijf.net
Fri May 23 11:46:31 UTC 2025


On Thu, May 22, 2025 at 10:38:07AM -0400, Eric via Pdns-users wrote:

> Having some trouble finding documentation and examples of using lau2 to answer dns requests.
> 
> Was able to use bind and gsqlite3 as backends for powerdns and they answer queries but have not had any luck with lau2 alone or with a combination of backends. Tried to write various scripts but they all result in query refused errors. Powerdns will run and I see it gets the query from the log, but it's as if it doesn't see itself as authoritative for the zone.
> 
> I would like to test using powerdns with lua2 where it can have dynamic responses.
> 
> 
> Before I get to any of that I just want to have it answer a single query of any kind with lau2 as the backend.
> 
> Does anyone have examples of minimal configs for pdns.conf and an associated lau2-filename script? Documentation or tutorial examples?
> 
> Thanks

Please show your config and a pdnsutil show-zone of the zone in
question.

https://github.com/PowerDNS/pdns/tree/master/modules/lua2backend/regression-tests
shows some Lua backend code that can act as a starting point.

	-Otto


More information about the Pdns-users mailing list