[dnsdist] dnsdist 1.7 : allow only A request

Stephane Bortzmeyer bortzmeyer at nic.fr
Thu Mar 9 17:05:15 UTC 2023


On Thu, Mar 09, 2023 at 04:25:12PM +0000,
 david n via dnsdist <dnsdist at mailman.powerdns.com> wrote 
 a message of 149 lines which said:

> I tried many ways

Which ones?

> but none are working.

I guess that a Lua custom action is probably the best solution, such as:

luarule(dq) if (dq.qtype!=dnsdist.AAAA) then return DNSAction.Nxdomain, "" else return DNSAction.Allow, "" end end
addLuaAction(AllRule(), luarule)

(Untested)

> I just want to DnsDist only answers to A or AAAA requests.

It seems a very bad idea (for instance, it will break old QNAME
minimization) so I suggest not doing it.


More information about the dnsdist mailing list