Hi Marco, On 05/08/2024 19:34, Marco Davids (SIDN) via dnsdist wrote:
I have this:function luarule(dq) local reply = 'hello' local strlen = string.char(#result) return DNSAction.SpoofRaw, strlen .. result end And would like to add and Extended DNS Error to the response. Is that possible?
Have you tried calling dq:setExtendedDNSError(...) [1] before returning from the function? It should do what you want.
[1]: https://dnsdist.org/reference/dq.html#DNSQuestion:setExtendedDNSError Best regards, -- Remi Gacogne PowerDNS.COM BV - https://www.powerdns.com/
OpenPGP_signature.asc
Description: OpenPGP digital signature
_______________________________________________ dnsdist mailing list dnsdist@mailman.powerdns.com https://mailman.powerdns.com/mailman/listinfo/dnsdist