Hello Kenneth,

On 16 Aug 2017, at 18:11, Kenneth Marshall wrote:

pdns_recursor[3935]: DNS parser error (a.b.c./AAAA from 127.0.0.1): a.b.c., Parsing record content: missing field at the end of record content ''

from the following lua script:

function preresolve ( remoteip, domain, qtype )
  ret={}
  if qtype == pdns.AAAA and domain == "a.b.c." then
    pdnslog ("fixing AAAA query " .. domain)
    ret[1]={qtype=pdns.AAAA, content=""}
    return 0, ret
  end
  return -1, ret
end

You are passing the recursor an AAAA record with no content. Here is how do it in v4: https://github.com/PowerDNS/pdns/blob/master/pdns/recursordist/examples/strip-ipv6-from-domains.lua

In your case, just leave ret empty instead of putting an ‘empty’ AAAA in it.

Kind regards,
--
Peter van Dijk
PowerDNS.COM BV - https://www.powerdns.com/
_______________________________________________
Pdns-users mailing list
[email protected]
https://mailman.powerdns.com/mailman/listinfo/pdns-users

Reply via email to