[Pdns-users] LUA for "filter-aaaa-on-v4"

Djerk Geurts djerk at maizymoo.com
Mon Oct 30 04:35:25 UTC 2023


Hi all,

Not had the opportunity to test this yet, but wanted to check with those more experienced at LUA scripting if the following has any unexpected side effects:

function preresolve(dq)
  -- Implementation of 'filter-aaaa-on-v4'
  if dq.qtype == pdns.AAAA and dq.remoteaddr:isIPv4() then
    dq.appliedPolicy.policyKind = pdns.policykinds.Drop
    return false
  else
    return false
  end
end

I will run a test when I get the opportunity. Does anyone filter AAAA requests for single stack clients (IPv4 only obviously)?

Thanks,
Djerk Geurts


More information about the Pdns-users mailing list