Re: unbound NXDOMAIN TTL shared between records

2015-08-21 Thread Daisuke HIGASHI via Unbound-users
Hi, Patrik - > which also suspiciously seems to use the SOA TTL of 7200 > rather than the NXDOMAIN TTL of 18000 That is how negative cache TTL is calculated (by authoritative server). RFC2308 reads: (Negative cache) TTL is taken from the minimum of the SOA.MINIMUM field and SOA's TTL. Rega

Re: unbound NXDOMAIN TTL shared between records

2015-08-21 Thread Tony Finch via Unbound-users
Patrik Lundin via Unbound-users wrote: > > The first lookup (which also suspiciously seems to use the SOA TTL of 7200 > rather than the NXDOMAIN TTL of 18000): RFC 2308 section 5 Like normal answers negative answers have a time to live (TTL). As there is no record in the answer section to

RE: unbound NXDOMAIN TTL shared between records

2015-08-21 Thread Stephan Lagerholm via Unbound-users
Hi Patrik, Yes I can confirm that unbound have a "domain wide" NXD caching. As long as the returned TTL for your second query is lower than the max TTL for the record this (IMHO) is not a violation of RFC2308. However there are domains out there that return a higher TTL for EMPTY NOERROR vs NXD

Re: unbound NXDOMAIN TTL shared between records

2015-08-21 Thread Patrik Lundin via Unbound-users
On Fri, Aug 21, 2015 at 04:32:33PM +0100, Tony Finch wrote: > > RFC 2308 section 5 > >Like normal answers negative answers have a time to live (TTL). As >there is no record in the answer section to which this TTL can be >applied, the TTL must be carried by another method. This is do

Re: unbound NXDOMAIN TTL shared between records

2015-08-21 Thread Patrik Lundin via Unbound-users
On Fri, Aug 21, 2015 at 03:40:14PM +, Stephan Lagerholm wrote: > > Yes I can confirm that unbound have a "domain wide" NXD caching. As > long as the returned TTL for your second query is lower than the max > TTL for the record this (IMHO) is not a violation of RFC2308. > Interesting... Is it

Re: unbound NXDOMAIN TTL shared between records

2015-08-21 Thread Patrik Lundin via Unbound-users
On Fri, Aug 21, 2015 at 08:16:03PM +0200, Patrik Lundin via Unbound-users wrote: > > It was interesting to hear that the 600 came from the NXDOMAIN response > for the equivalent lookup of nonexistant1.google.com. > Correction: the TTL of 600 comes from the NOERROR result from looking up AAA

Re: unbound NXDOMAIN TTL shared between records

2015-08-21 Thread Wouter Wijngaards via Unbound-users
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Patrik, On 08/21/2015 05:14 PM, Patrik Lundin via Unbound-users wrote: > Hello, > > I recently noticed what to me is a strange caching behaviour for > NXDOMAIN results. > > This has been seen both on Ubuntu 14.04 with unbound 1.4.22 and on > Op

Re: unbound NXDOMAIN TTL shared between records

2015-08-21 Thread Patrik Lundin via Unbound-users
On Fri, Aug 21, 2015 at 11:13:34PM +0200, Wouter Wijngaards via Unbound-users wrote: > > This is because the RRset cache is shared between answers. The SOA > record is in that cache. When you query the second time, unbound > detects that the SOA record has not changed, and therefore keeps > tim

Re: unbound NXDOMAIN TTL shared between records

2015-08-24 Thread W.C.A. Wijngaards via Unbound-users
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi Patrik, On 22/08/15 07:27, Patrik Lundin wrote: > On Fri, Aug 21, 2015 at 11:13:34PM +0200, Wouter Wijngaards via > Unbound-users wrote: >> >> This is because the RRset cache is shared between answers. The >> SOA record is in that cache. When