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/

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

_______________________________________________
dnsdist mailing list
dnsdist@mailman.powerdns.com
https://mailman.powerdns.com/mailman/listinfo/dnsdist

Reply via email to