otlich

Results comments of otlich

My test configs ``` $ cat /etc/powerdns/recursor.conf allow-from=127.0.0.1, 10.0.0.0/8 config-dir=/etc/powerdns hint-file=/usr/share/dns/root.hints include-dir=/etc/powerdns/recursor.d local-address=0.0.0.0 local-port=53 quiet=yes setgid=pdns setuid=pdns dnssec=process-no-validate extended-resolution-errors=yes version-string= max-negative-ttl=5 max-cache-ttl=600 packetcache-servfail-ttl=5 log-common-errors=yes max-tcp-clients=512 packetcache-ttl=300 reuseport=yes pdns-distributes-queries=yes threads=20 forward-zones=example.com=127.0.0.1:5353...

If I disable `pdns-distributes-queries` and use `reuseport` I won't have these errors but will have lots of outgoing requests. Another way to solve this problem is to enable `serve-stale-extensions`. Yes,...

I think happening is this: 1. `asyncresolve` gen new ID for request https://github.com/PowerDNS/pdns/blob/9e58e58718b1bfc61c8a47a9f676a02b8d7b39fd/pdns/recursordist/lwres.cc#L396 2. (does something) 3. `asyncresolve` start `arecvfrom` https://github.com/PowerDNS/pdns/blob/3264365937199e20ad4edec245a79501e763562e/pdns/recursordist/lwres.cc#L505 4. `arecvfrom` add this ID in to `pident->id` https://github.com/PowerDNS/pdns/blob/3264365937199e20ad4edec245a79501e763562e/pdns/recursordist/pdns_recursor.cc#L357...

> I do wonder if this is a scenario we encounter in real life. Yes. I have many same request to consul and I see these servfail all the time....