[dnsdist] LUA DNS Parser
Remi Gacogne
remi.gacogne at powerdns.com
Thu Jun 19 08:08:12 UTC 2025
Hello,
On 6/19/25 07:22, japantoday--- via dnsdist wrote:
> I am trying to develop some lua code to reduce the number of TXT records
> some domains return.
>
> I've had no luck accessing the DNS answer. After failing with my own
> code, I decided to run the sample code found here: https://
> www.dnsdist.org/advanced/luaaction.html <https://www.dnsdist.org/
> advanced/luaaction.html>
>
> The sample code can output the domain being queried, query type etc.
>
> However, DNSSection.Answer is always 0.
>
> So the loop the sample code attempts to run, if never run because there
> is no data.
>
> Could my code be running before the data is returned from the DNS server
> or something?
>
> No error, just can't get any data to output.
Would you mind sharing the code you are running? I don't see any example
looking at the content of responses in the page you mentioned, so it's
not clear to me what sample code you are using.
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/20250619/ad0c8762/attachment.sig>
More information about the dnsdist
mailing list