Bind not caching AAAA records

Mark Andrews marka at isc.org
Sat Mar 2 00:02:17 UTC 2013


In message <CAEy9Ut5ooYJCcSXi3aHCnZz5vD578yqsBpNoTzw3Xmh=BZmjOA at mail.gmail.com>
, Stephen Wood writes:
> 
> Hello.
> 
> I have bind set up as a cache and forwarder only. I am having trouble
> getting bind to cache AAAA records. I can see from the rndc stats file that
> A records are being cached quite nicely, but all AAAA requests are flowing
> through to the upstream servers.

Unfortunately some load balancers don't return good / cacheable
negative answers for AAAA queries.  They either have no SOA record
or return the wrong SOA record.

> Here's a snippet from my stats file:
> 
> ++ Incoming Queries ++
>                17394 A
>                17387 AAAA
> ++ Outgoing Queries ++
> [View: default]
>                  202 A
>                17354 AAAA
> 
> Unless I'm reading the stats output, it looks like all of the AAAA requests
> are cache misses.
> 
> My bind.conf.options file has the following contents:
> 
> options {
>     recursing-file "/etc/bind/bind.recurse";
>     forward only;
> 
>     minimal-responses yes;
> 
>     statistics-file "/etc/bind/stats";
> 
>     forwarders {
>         172.16.0.23;
>     } ;
> 
>     recursive-clients 10000;
> 
>     allow-query { any ; } ;
>     allow-recursion { any ; } ;
>     listen-on { any ; };
>     listen-on-v6 { any ; };
> 
>     recursion yes;
> };
> 
> 
> The contents of my /etc/defaults/bind9 file is as follows:
> 
> //
> # run resolvconf?
> RESOLVCONF=no
> 
> # startup options for the server
> OPTIONS="-u bind"
> //
> 
> My operating system is Ubuntu 12.04.
> 
> Is there someone that can point me in the right direction? I tried googling
> "Bind9 AAAA record not caching" and things like "bind AAAA cache hit" but
> can't seem to figure out what's happening.
> 
> --047d7b603bce0e609504d6e57a83
> Content-Type: text/html; charset=ISO-8859-1
> Content-Transfer-Encoding: quoted-printable
> 
> Hello.<div><br></div><div>I have bind set up as a cache and forwarder only.=
>  I am having trouble getting bind to cache AAAA records. I can see from the=
>  rndc stats file that A records are being cached quite nicely, but all AAAA=
>  requests are flowing through to the upstream servers.</div>
> 
> <div><br></div><div>Here's a snippet from my stats file:</div><div><br>=
> </div><div><div>++ Incoming Queries ++</div><div>=A0 =A0 =A0 =A0 =A0 =A0 =
> =A0 =A017394 A</div><div>=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A017387 AAAA</div><di=
> v>++ Outgoing Queries ++</div>
> 
> <div>[View: default]</div><div>=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0202 A</di=
> v><div>=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A017354 AAAA</div></div><div><br></div>=
> <div>Unless I'm reading the stats output, it looks like all of the AAAA=
>  requests are cache misses.</div>
> 
> <div><br></div><div>My bind.conf.options file has the following contents:</=
> div><div><br></div><div><div>options {</div><div>=A0 =A0 recursing-file &qu=
> ot;/etc/bind/bind.recurse";</div><div>=A0 =A0 forward only;</div><div>=
> <br>
> 
> </div><div>=A0 =A0 minimal-responses yes;</div><div><br></div><div>=A0 =A0 =
> statistics-file "/etc/bind/stats";</div><div><br></div><div>=A0 =
> =A0 forwarders {</div><div>=A0 =A0 =A0 =A0 172.16.0.23;</div><div>=A0 =A0 }=
>  ;</div><div><br></div>
> 
> <div>=A0 =A0 recursive-clients 10000;</div><div><br></div><div>=A0 =A0 allo=
> w-query { any ; } ;</div><div>=A0 =A0 allow-recursion { any ; } ;</div><div=
> >=A0 =A0 listen-on { any ; };</div><div>=A0 =A0 listen-on-v6 { any ; };</di=
> v><div><br></div>
> 
> <div>=A0 =A0 recursion yes;</div><div>};</div><div><br></div></div><div><br=
> ></div><div>The contents of my /etc/defaults/bind9 file is as follows:</div=
> ><div><br></div><div>//</div><div><div># run resolvconf?</div><div>RESOLVCO=
> NF=3Dno</div>
> 
> <div><br></div><div># startup options for the server</div><div>OPTIONS=3D&q=
> uot;-u bind"</div></div><div>//</div><div><br></div><div>My operating =
> system is Ubuntu 12.04.=A0</div><div><br></div><div>Is there someone that c=
> an point me in the right direction? I tried googling "Bind9 AAAA recor=
> d not caching" and things like "bind AAAA cache hit" but can=
> 't seem to figure out what's happening.</div>
> 
> 
> --047d7b603bce0e609504d6e57a83--
> 
> --===============6431643929279798256==
> Content-Type: text/plain; charset="us-ascii"
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Content-Disposition: inline
> 
> _______________________________________________
> Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe
>  from this list
> 
> bind-users mailing list
> bind-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/bind-users
> --===============6431643929279798256==--
-- 
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742                 INTERNET: marka at isc.org



More information about the bind-users mailing list