[dnsdist] TCAction() doesnt return answer

Remi Gacogne remi.gacogne+dnsdist at powerdns.com
Tue Apr 26 11:54:12 UTC 2016


On 04/26/2016 12:26 PM, dims wrote:
> addAction({"", "::/0"}, TCAction())

This rule is going to reply to every query with the TC flag set, even
the ones received over TCP. I'd guess that what you want is actually
something like:

addAction(TCPRule(false), TCAction())

Which would reply with TC to queries received over UDP only.

You can use AndRule() and OrRule() to combine that with other rules:

addAction(AndRule({makeRule(""), TCPRule(false)}), TCAction())


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

More information about the dnsdist mailing list