[Pdns-users] pdns-recursor 3.7.4 on Redhat Linux always returns SERVFAIL for AAAA lookups

Kenneth Marshall ktm at rice.edu
Wed Aug 16 20:06:23 UTC 2017


On Wed, Aug 16, 2017 at 06:39:22PM +0200, Peter van Dijk wrote:
> 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/

Hi Peter,

Thank you very much. I never thought to try just returning the
empty result.

Regards,
Ken


More information about the Pdns-users mailing list