Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

what does "max-ncache-ttl 0;" mean?

651 views
Skip to first unread message

blrmaani

unread,
Mar 2, 2016, 2:13:35 AM3/2/16
to comp-protoc...@isc.org
man pages for named.conf says "max-ncache-ttl <integer>" and only talks about default values and max values - no mention of minimum-value.

Does "max-ncache-ttl 0;" mean never cache negative queries (queries resulting in NXDOMAIN) or does it mean cache negative queries forever?

Too lazy to test this option or look bind code :), hence posting here - apologies in advance..!!

Blr

John W. Blue

unread,
Mar 2, 2016, 2:18:11 AM3/2/16
to blrmaani, comp-protoc...@isc.org
http://www.google.com/search?q=max-ncache-ttl+0

John
_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list

bind-users mailing list
bind-...@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users

A. Renald Niswady

unread,
Mar 2, 2016, 2:24:43 AM3/2/16
to blrmaani, comp-protoc...@isc.org
max-ncache-ttl sets the maximum time (in seconds) for which the server will cache negative (NXDOMAIN) answers (positives are defined by max-cache-ttl). The default max-ncache-ttl is 10800 seconds (3 hours). max-ncache-ttl cannot exceed 7 days and will be silently truncated to 7 days if set to a greater value. This statement may be used in view or a global options clause.

Regards,
A. Renald Niswady
[NOC-System] Orion Cyber Internet

PT Orion Cyber Internet
Gedung Cyber Lt. 1 Jl. Kuningan Barat No. 8, Jakarta Selatan 12710
Telp: 021 5265566 - Fax: 021 6280883
Homepage: http://www.orion.net.id
Internet Access, Webhosting, Colocation, Games and More.


From: "blrmaani" <blrm...@gmail.com>
To: comp-protoc...@isc.org
Sent: Wednesday, March 2, 2016 2:13:29 PM

John W. Blue

unread,
Mar 2, 2016, 2:27:56 AM3/2/16
to A. Renald Niswady, blrmaani, comp-protoc...@isc.org

Now quote your source.

 

;)

A. Renald Niswady

unread,
Mar 2, 2016, 2:34:09 AM3/2/16
to John W. Blue, comp-protoc...@isc.org
hehehe,


i found zytrax site is really helpful


Regards
-Renald-


From: "John W. Blue" <john...@rrcic.com>
To: "A. Renald Niswady" <rena...@orion.net.id>, "blrmaani" <blrm...@gmail.com>
Cc: comp-protoc...@isc.org
Sent: Wednesday, March 2, 2016 2:27:49 PM
Subject: RE: what does "max-ncache-ttl 0;" mean?

blrmaani

unread,
Mar 2, 2016, 7:32:14 AM3/2/16
to comp-protoc...@isc.org
On Tuesday, March 1, 2016 at 11:34:09 PM UTC-8, A. Renald Niswady wrote:
> hehehe,
>
>
> http://www.zytrax.com/books/dns/ch7/hkpng.html#max-ncache-ttl
>
>
> i found zytrax site is really helpful
>
>
>
>
>
>
> Regards
> -Renald-
>
> From: "John W. Blue" <john...@rrcic.com>
> To: "A. Renald Niswady" <rena...@orion.net.id>, "blrmaani" <blrm...@gmail.com>
> Cc: comp-protoc...@isc.org
> Sent: Wednesday, March 2, 2016 2:27:49 PM
> Subject: RE: what does "max-ncache-ttl 0;" mean?
>
>
>
>
>
>
>
>
>
>
>
>
> Now quote your source.
>
>  
>
> ;)
>
>  
>
>
>
>
>
> From: bind-user...@lists.isc.org [mailto:bind-user...@lists.isc.org]
> On Behalf Of A. Renald Niswady
>
> Sent: Wednesday, March 02, 2016 1:23 AM
>
> To: blrmaani
>
> Cc: comp-protoc...@isc.org
>
> Subject: Re: what does "max-ncache-ttl 0;" mean?
>
>
>
>  
>
>
>
>
>
> max-ncache-ttl sets the maximum time (in seconds) for which the server will cache negative (NXDOMAIN) answers
> (positives are defined by
> max-cache-ttl). The default max-ncache-ttl is 10800 seconds (3 hours). max-ncache-ttl cannot exceed 7 days and will be silently truncated to 7 days if set to a greater value. This statement may be used in
> view or a global
> options clause.
>
>
>
>
>  
>
>
>
>
>
>
> Regards,
>
> A. Renald Niswady
>
> [NOC-System] Orion Cyber Internet
>
>
>
>
>
>
>
>
> PT Orion Cyber Internet
>
> Gedung Cyber Lt. 1 Jl. Kuningan Barat No. 8, Jakarta Selatan 12710
>
> Telp: 021 5265566 - Fax: 021 6280883
>
> Homepage:
>
> http://www.orion.net.id
>
> Internet Access, Webhosting, Colocation, Games and More.
>
>
>  
>
>
>
>
>
>
>
>
> From:
> "blrmaani" <blrm...@gmail.com>
>
> To: comp-protoc...@isc.org
>
> Sent: Wednesday, March 2, 2016 2:13:29 PM
>
> Subject: what does "max-ncache-ttl 0;" mean?
>
>
>
>  
>
>
> man pages for named.conf says "max-ncache-ttl <integer>" and only talks about default values and max values - no mention of minimum-value.
>
>
>
>
>  
>
>
> Does "max-ncache-ttl 0;" mean never cache negative queries (queries resulting in NXDOMAIN) or does it mean cache negative queries forever?
>
>
>
>  
>
>
> Too lazy to test this option or look bind code :), hence posting here - apologies in advance..!!
>
>
>
>  
>
>
> Blr
>
> _______________________________________________
>
> Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list
>
>
>
>  
>
>
> bind-users mailing list
>
> bind-...@lists.isc.org
>
> https://lists.isc.org/mailman/listinfo/bind-users
>
>
>
>
>
>  

No definite answer anywhere when value is set to 0

MURTARI, JOHN

unread,
Mar 2, 2016, 8:22:37 AM3/2/16
to bind-...@lists.isc.org

Folks,

 

                Never has so little been said by so many?  The OP asked:

======

man pages for named.conf says "max-ncache-ttl <integer>" and only talks about default values and max values - no mention of minimum-value.

Does "max-ncache-ttl 0;" mean never cache negative queries (queries resulting in NXDOMAIN) or does it mean cache negative queries forever?

Too lazy to test this option or look bind code :), hence posting here - apologies in advance..!!

======

 

                So far, all the postings I’ve seen just echo what he already said (and knows).  The question is – what happens when you set it to ZERO?

 

                I’m wondering myself – anyone have a real answer?

                Smiles!

John

 

----------------   
John Murtari – jm5...@att.com

Ciberspring

office: 315-944-0998

cell: 315-430-2702

 

Tony Finch

unread,
Mar 2, 2016, 8:29:21 AM3/2/16
to MURTARI, JOHN, bind-...@lists.isc.org
MURTARI, JOHN <jm5...@att.com> wrote:
>
> So far, all the postings I've seen just echo what he already said (and
> knows). The question is - what happens when you set it to ZERO?
>
> I'm wondering myself - anyone have a real answer?

The code says zero means zero, so in effect it would disable negative
cacheing.

Tony.
--
f.anthony.n.finch <d...@dotat.at> http://dotat.at/
Thames, Dover, Wight: West veering northwest 7 to severe gale 9, decreasing 4
or 5 later. Rough or very rough, becoming moderate or rough later. Squally
showers. Good, occasionally poor.

Matus UHLAR - fantomas

unread,
Mar 2, 2016, 8:32:31 AM3/2/16
to bind-...@lists.isc.org
>MURTARI, JOHN <jm5...@att.com> wrote:
>> So far, all the postings I've seen just echo what he already said (and
>> knows). The question is - what happens when you set it to ZERO?
>>
>> I'm wondering myself - anyone have a real answer?

On 02.03.16 13:29, Tony Finch wrote:
>The code says zero means zero, so in effect it would disable negative
>cacheing.

which means, DON'T DO THAT. anyone searching for nonexisting DNS names (e.g.
because of a misconfiguration) could easily DoS your server.
--
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
"To Boot or not to Boot, that's the question." [WD1270 Caviar]

Darcy Kevin (FCA)

unread,
Mar 2, 2016, 3:22:32 PM3/2/16
to bind-...@lists.isc.org
I wouldn't be so quick to assume that.

Nota bene this part of the ARM:

"Integers may take values 0 <= value <= 18446744073709551615, though certain parameters (such as max-journal-size) may use a more limited range within these extremes. In most cases, setting a value to 0 does not literally mean zero; it means 'undefined"' or 'as big as possible', depending on the context. See the explanations of particular parameters that use size_spec for details on how they interpret its use."

So, it might actually mean "as big as possible".

Consult the source code to be sure.
- Kevin


----------------------------------------------------------------------
Kevin Darcy
NAFTA Information Security Projects

FCA US LLC
1075 W Entrance Dr,
Auburn Hills, MI 48326
USA

Telephone: +1 (248) 838-6601
Mobile: +1 (810) 397-0103
Email: kevin...@fcagroup.com

-----Original Message-----
From: bind-user...@lists.isc.org [mailto:bind-user...@lists.isc.org] On Behalf Of Tony Finch
Sent: Wednesday, March 02, 2016 8:29 AM
To: MURTARI, JOHN
Cc: bind-...@lists.isc.org
Subject: Re: what does "max-ncache-ttl 0;" mean?

MURTARI, JOHN <jm5...@att.com> wrote:
>
> So far, all the postings I've seen just echo what he already said (and
> knows). The question is - what happens when you set it to ZERO?
>
> I'm wondering myself - anyone have a real answer?

The code says zero means zero, so in effect it would disable negative cacheing.

Tony.
--
f.anthony.n.finch <d...@dotat.at> http://dotat.at/ Thames, Dover, Wight: West veering northwest 7 to severe gale 9, decreasing 4 or 5 later. Rough or very rough, becoming moderate or rough later. Squally showers. Good, occasionally poor.

Evan Hunt

unread,
Mar 2, 2016, 4:02:13 PM3/2/16
to Darcy Kevin (FCA), bind-...@lists.isc.org
> So, it might actually mean "as big as possible".
>
> Consult the source code to be sure.

Tony did consult the source code, upthread. And he was correct: for this
particular option, zero does mean zero.

--
Evan Hunt -- ea...@isc.org
Internet Systems Consortium, Inc.
0 new messages