<div dir="ltr"><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif;font-size:small">Hello!</div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif;font-size:small">How are you?</div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif;font-size:small">I started having a problem with BIND9. Something must have changed, because I start getting SERVFAIL a lot.</div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif;font-size:small">Looks like this:</div><div class="gmail_default"><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">25-Jul-2018 07:44:09.647 client @0x7fa268223c10 192.168.78.30#56577 (<a href="http://aax-eu.amazon-adsystem.com">aax-eu.amazon-adsystem.com</a>): view internal-enp1s0f3: query failed (SERVFAIL) for <a href="http://aax-eu.amazon-adsystem.com/IN/AAAA">aax-eu.amazon-adsystem.com/IN/AAAA</a> at ../../../bin/named/query.c:6885</font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">25-Jul-2018 07:44:09.647 client @0x7fa2380e1ea0 192.168.81.30#41771 (<a href="http://aax-eu.amazon-adsystem.com">aax-eu.amazon-adsystem.com</a>): view internal-enp1s0f2: query failed (SERVFAIL) for <a href="http://aax-eu.amazon-adsystem.com/IN/AAAA">aax-eu.amazon-adsystem.com/IN/AAAA</a> at ../../../bin/named/query.c:6885</font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">25-Jul-2018 07:44:09.647 client @0x7fa2440c7ef0 2001:470:1f1b:5b3::b4a#41516 (<a href="http://aax-eu.amazon-adsystem.com">aax-eu.amazon-adsystem.com</a>): view internal-enp1s0f3: query failed (SERVFAIL) for <a href="http://aax-eu.amazon-adsystem.com/IN/AAAA">aax-eu.amazon-adsystem.com/IN/AAAA</a> at ../../../bin/named/query.c:6885</font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">25-Jul-2018 07:44:09.647 client @0x7fa2380e1ea0 192.168.81.30#41771 (<a href="http://aax-eu.amazon-adsystem.com">aax-eu.amazon-adsystem.com</a>): view internal-enp1s0f2: query failed (SERVFAIL) for <a href="http://aax-eu.amazon-adsystem.com/IN/AAAA">aax-eu.amazon-adsystem.com/IN/AAAA</a> at ../../../bin/named/query.c:6885</font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">25-Jul-2018 07:44:09.648 client @0x7fa2440c7ef0 2001:470:1f1b:5b3::b4a#41516 (<a href="http://aax-eu.amazon-adsystem.com">aax-eu.amazon-adsystem.com</a>): view internal-enp1s0f3: query failed (SERVFAIL) for <a href="http://aax-eu.amazon-adsystem.com/IN/AAAA">aax-eu.amazon-adsystem.com/IN/AAAA</a> at ../../../bin/named/query.c:6885</font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">25-Jul-2018 07:44:09.648 client @0x7fa2340836e0 2001:470:1f1b:5b5::b4a#50353 (<a href="http://aax-eu.amazon-adsystem.com">aax-eu.amazon-adsystem.com</a>): view internal-enp1s0f2: query failed (SERVFAIL) for <a href="http://aax-eu.amazon-adsystem.com/IN/AAAA">aax-eu.amazon-adsystem.com/IN/AAAA</a> at ../../../bin/named/query.c:6885</font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">25-Jul-2018 07:44:09.648 client @0x7fa2440c7ef0 2001:470:1f1b:5b5::b4a#50353 (<a href="http://aax-eu.amazon-adsystem.com">aax-eu.amazon-adsystem.com</a>): view internal-enp1s0f2: query failed (SERVFAIL) for <a href="http://aax-eu.amazon-adsystem.com/IN/AAAA">aax-eu.amazon-adsystem.com/IN/AAAA</a> at ../../../bin/named/query.c:6885</font></div><div style="font-size:small;font-family:"trebuchet ms",sans-serif"><br></div><div style="font-size:small;font-family:"trebuchet ms",sans-serif">To me, it looks like, the requests try the AAAA ipv6 addresses but they are not in IPv6 and because of that it gives a SERVFAIL.</div><div style="font-size:small;font-family:"trebuchet ms",sans-serif">Is there a way to give a priority to the BIND9 request before the IPv6 and first try the IPv4 and if there is no IPv4 result, then try IPv6. Because now, it gives a few SERVFAIL (I have to refresh the browser, to make it work to get), I guess, get the IPv4 if only works after a few refreshes.</div><div style="font-size:small;font-family:"trebuchet ms",sans-serif">Even, if I do a dig on it iit shows, there is no AAAA:</div><div><div><font face="monospace, monospace">root@server:/etc/nginx/sites-enabled# dig <a href="http://aax-eu.amazon-adsystem.com">aax-eu.amazon-adsystem.com</a></font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">; <<>> DiG 9.11.3-2-Debian <<>> <a href="http://aax-eu.amazon-adsystem.com">aax-eu.amazon-adsystem.com</a></font></div><div><font face="monospace, monospace">;; global options: +cmd</font></div><div><font face="monospace, monospace">;; Got answer:</font></div><div><font face="monospace, monospace">;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 27021</font></div><div><font face="monospace, monospace">;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 6, ADDITIONAL: 1</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">;; OPT PSEUDOSECTION:</font></div><div><font face="monospace, monospace">; EDNS: version: 0, flags:; udp: 4096</font></div><div><font face="monospace, monospace">; COOKIE: e45e832118506bb5a0758eeb5b580e51c9b57c8a8d971011 (good)</font></div><div><font face="monospace, monospace">;; QUESTION SECTION:</font></div><div><font face="monospace, monospace">;<a href="http://aax-eu.amazon-adsystem.com">aax-eu.amazon-adsystem.com</a>.<span style="white-space:pre"> </span>IN<span style="white-space:pre">   </span>A</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">;; ANSWER SECTION:</font></div><div><font face="monospace, monospace"><a href="http://aax-eu.amazon-adsystem.com">aax-eu.amazon-adsystem.com</a>. 60<span style="white-space:pre">  </span>IN<span style="white-space:pre">   </span>A<span style="white-space:pre">    </span>52.94.216.48</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">;; AUTHORITY SECTION:</font></div><div><font face="monospace, monospace"><a href="http://aax-eu.amazon-adsystem.com">aax-eu.amazon-adsystem.com</a>. 860<span style="white-space:pre">   </span>IN<span style="white-space:pre">   </span>NS<span style="white-space:pre">   </span><a href="http://ns-921.amazon.com">ns-921.amazon.com</a>.</font></div><div><font face="monospace, monospace"><a href="http://aax-eu.amazon-adsystem.com">aax-eu.amazon-adsystem.com</a>. 860<span style="white-space:pre">   </span>IN<span style="white-space:pre">   </span>NS<span style="white-space:pre">   </span><a href="http://ns-911.amazon.com">ns-911.amazon.com</a>.</font></div><div><font face="monospace, monospace"><a href="http://aax-eu.amazon-adsystem.com">aax-eu.amazon-adsystem.com</a>. 860<span style="white-space:pre">   </span>IN<span style="white-space:pre">   </span>NS<span style="white-space:pre">   </span><a href="http://ns-932.amazon.com">ns-932.amazon.com</a>.</font></div><div><font face="monospace, monospace"><a href="http://aax-eu.amazon-adsystem.com">aax-eu.amazon-adsystem.com</a>. 860<span style="white-space:pre">   </span>IN<span style="white-space:pre">   </span>NS<span style="white-space:pre">   </span><a href="http://ns-931.amazon.com">ns-931.amazon.com</a>.</font></div><div><font face="monospace, monospace"><a href="http://aax-eu.amazon-adsystem.com">aax-eu.amazon-adsystem.com</a>. 860<span style="white-space:pre">   </span>IN<span style="white-space:pre">   </span>NS<span style="white-space:pre">   </span><a href="http://ns-912.amazon.com">ns-912.amazon.com</a>.</font></div><div><font face="monospace, monospace"><a href="http://aax-eu.amazon-adsystem.com">aax-eu.amazon-adsystem.com</a>. 860<span style="white-space:pre">   </span>IN<span style="white-space:pre">   </span>NS<span style="white-space:pre">   </span><a href="http://ns-923.amazon.com">ns-923.amazon.com</a>.</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">;; Query time: 52 msec</font></div><div><font face="monospace, monospace">;; SERVER: 192.168.78.20#53(192.168.78.20)</font></div><div><font face="monospace, monospace">;; WHEN: Wed Jul 25 07:44:49 CEST 2018</font></div><div><font face="monospace, monospace">;; MSG SIZE  rcvd: 232</font></div><div style="font-family:"trebuchet ms",sans-serif;font-size:small"><br></div></div></div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif;font-size:small">Is there any solution for this? It just started happening in the last week.</div><div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><font size="4"><b><u><br></u></b></font></div><div dir="ltr"><font size="4"><b><u>Patrik</u></b></font><div><font size="1"><a href="https://patrikx3.com" target="_blank">WWW</a> | <a href="https://github.com/patrikx3/" target="_blank">GitHub</a> | <a href="https://www.npmjs.com/~patrikx3" target="_blank">NPM</a> | <a href="https://corifeus.com" target="_blank">Corifeus</a> | +</font><span style="font-size:x-small">36 20 342 8046</span></div><div><br><br></div></div></div></div></div></div></div></div></div></div>