[dnsdist] Is it possible to add an EDE to DNSAction.SpoofRaw ?

Remi Gacogne remi.gacogne at powerdns.com
Tue Aug 20 07:26:33 UTC 2024


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/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.powerdns.com/pipermail/dnsdist/attachments/20240820/c4075dd8/attachment.sig>


More information about the dnsdist mailing list