Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Feature request - disable internal recursion cache
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  21 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Dmitry Rybin  
View profile  
 More options Oct 30, 3:30 am
Newsgroups: comp.protocols.dns.bind
From: Dmitry Rybin <kirg...@corbina.net>
Date: Fri, 30 Oct 2009 10:30:53 +0300
Local: Fri, Oct 30 2009 3:30 am
Subject: Feature request - disable internal recursion cache
Hello everybody!

I think, that be useful make this feature in bind:
Add option to disable internal recursion cache, and forward all
recursive queries to another daemon.

Daemon as unbound, pdns-recursor - much faster in recursion queries,
that bind. :(


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Niall O'Reilly  
View profile  
 More options Oct 30, 5:25 am
Newsgroups: comp.protocols.dns.bind
From: Niall O'Reilly <Niall.oRei...@ucd.ie>
Date: Fri, 30 Oct 2009 09:25:49 +0000
Local: Fri, Oct 30 2009 5:25 am
Subject: Re: Feature request - disable internal recursion cache

Dmitry Rybin wrote:
> Hello everybody!

> I think, that be useful make this feature in bind:
> Add option to disable internal recursion cache, and forward all
> recursive queries to another daemon.

> Daemon as unbound, pdns-recursor - much faster in recursion queries,
> that bind. :(

        I don't see the point.

        If you need some code, other than BIND named, to handle
        recursive queries from your clients, why not just have
        that code listening on the addresses configured in the
        stub resolver on each of the client systems?

        Best regards,

        Niall O'Reilly
        University College Dublin IT Services


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dmitry Rybin  
View profile  
 More options Oct 30, 6:44 am
Newsgroups: comp.protocols.dns.bind
From: Dmitry Rybin <kirg...@corbina.net>
Date: Fri, 30 Oct 2009 13:44:05 +0300
Local: Fri, Oct 30 2009 6:44 am
Subject: Re: Feature request - disable internal recursion cache

Niall O'Reilly wrote:
>> I think, that be useful make this feature in bind:
>> Add option to disable internal recursion cache, and forward all
>> recursive queries to another daemon.

>> Daemon as unbound, pdns-recursor - much faster in recursion queries,
>> that bind. :(

>     I don't see the point.

>     If you need some code, other than BIND named, to handle
>     recursive queries from your clients, why not just have
>     that code listening on the addresses configured in the
>     stub resolver on each of the client systems?

I'll explain, why.
Same Server is authoritative for internet/intranet and recursive for
intranet and one large AS. Sometimes Auth/Rec server IP cannot be spited
into different IP's.

Bind answer authoritative for all clients, and forward (if allowed)
recursive queries to recursive server.


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kevin Darcy  
View profile  
 More options Oct 30, 10:19 am
Newsgroups: comp.protocols.dns.bind
From: Kevin Darcy <k...@chrysler.com>
Date: Fri, 30 Oct 2009 09:19:48 -0500
Local: Fri, Oct 30 2009 10:19 am
Subject: Re: Feature request - disable internal recursion cache
Dmitry Rybin wrote:
> Hello everybody!

> I think, that be useful make this feature in bind:
> Add option to disable internal recursion cache, and forward all
> recursive queries to another daemon.

> Daemon as unbound, pdns-recursor - much faster in recursion queries,
> that bind. :(
> _______________________________________________

So, you don't cache locally, you forward to another daemon that (in the
best case) answers from *its* cache.

How have you improved performance by changing nothing else and adding a
network hop?

- Kevin


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kevin Darcy  
View profile  
 More options Oct 30, 10:31 am
Newsgroups: comp.protocols.dns.bind
From: Kevin Darcy <k...@chrysler.com>
Date: Fri, 30 Oct 2009 09:31:57 -0500
Local: Fri, Oct 30 2009 10:31 am
Subject: Re: Feature request - disable internal recursion cache

Why not just point some or all of those recursive clients to the "other"
recursive resolver?

Seems like BIND ceases to add any value when it's just forwarding
everything and not caching any results.

- Kevin


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Hare  
View profile  
 More options Oct 30, 11:05 am
Newsgroups: comp.protocols.dns.bind
From: Michael Hare <michael.h...@doit.wisc.edu>
Date: Fri, 30 Oct 2009 10:05:52 -0500
Local: Fri, Oct 30 2009 11:05 am
Subject: Re: Feature request - disable internal recursion cache
For those of us that are still running auth and recursive on the same
IP, I believe the benefit would be to deploy a best practices recursive
only nameserver on a different machine/IP address without getting, in my
case, possibly hundreds of thousands of clients to change their DNS
resolver IP address.

In the surface, I too find this to be an interesting idea.

-Michael


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kevin Darcy  
View profile  
 More options Oct 30, 11:37 am
Newsgroups: comp.protocols.dns.bind
From: Kevin Darcy <k...@chrysler.com>
Date: Fri, 30 Oct 2009 10:37:01 -0500
Local: Fri, Oct 30 2009 11:37 am
Subject: Re: Feature request - disable internal recursion cache
Getting clients to change their resolvers can be challenging, especially
if there are large numbers of them and many/most of them don't get their
resolvers via DHCP.

But I think the answer to that challenge is to come up with better ways
of managing clients, not to add a "proxy mode" to BIND.

                                                - Kevin


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Thompson  
View profile  
 More options Oct 30, 11:50 am
Newsgroups: comp.protocols.dns.bind
From: Chris Thompson <c...@cam.ac.uk>
Date: 30 Oct 2009 15:50:02 +0000
Local: Fri, Oct 30 2009 11:50 am
Subject: Re: Feature request - disable internal recursion cache
On Oct 30 2009, Michael Hare wrote:

>For those of us that are still running auth and recursive on the same
>IP, I believe the benefit would be to deploy a best practices recursive
>only nameserver on a different machine/IP address without getting, in my
>case, possibly hundreds of thousands of clients to change their DNS
>resolver IP address.

Put the authoritative-only nameservers at the new IP addresses, keeping
the recursive ones at the original IP addresses.

Been there, done that!

--
Chris Thompson
Email: c...@cam.ac.uk


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kevin Darcy  
View profile  
 More options Oct 30, 2:44 pm
Newsgroups: comp.protocols.dns.bind
From: Kevin Darcy <k...@chrysler.com>
Date: Fri, 30 Oct 2009 13:44:12 -0500
Local: Fri, Oct 30 2009 2:44 pm
Subject: Re: Feature request - disable internal recursion cache
Chris Thompson wrote:
> On Oct 30 2009, Michael Hare wrote:

>> For those of us that are still running auth and recursive on the same
>> IP, I believe the benefit would be to deploy a best practices
>> recursive only nameserver on a different machine/IP address without
>> getting, in my case, possibly hundreds of thousands of clients to
>> change their DNS resolver IP address.

> Put the authoritative-only nameservers at the new IP addresses, keeping
> the recursive ones at the original IP addresses.

> Been there, done that!

Well, except then you need to update all of your delegations. That can
not only be an administrative hassle, but can also get very expensive,
especially if you have hundreds of them in ccTLDs, where you have to pay
your "in-country agent" a fee for every registry change. It's quite a
racket.

- Kevin


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Andrews  
View profile  
 More options Oct 30, 7:54 pm
Newsgroups: comp.protocols.dns.bind
From: Mark Andrews <ma...@isc.org>
Date: Sat, 31 Oct 2009 10:54:16 +1100
Local: Fri, Oct 30 2009 7:54 pm
Subject: Re: Feature request - disable internal recursion cache

In message <4AEB00D0.8030...@doit.wisc.edu>, Michael Hare writes:

> For those of us that are still running auth and recursive on the same
> IP, I believe the benefit would be to deploy a best practices recursive
> only nameserver on a different machine/IP address without getting, in my
> case, possibly hundreds of thousands of clients to change their DNS
> resolver IP address.

> In the surface, I too find this to be an interesting idea.

> -Michael

It's much easier to move authoritative servers to new addresses.
Just change the delegation and the iterative traffic will follow.
You can keep the old server as a stealth slave.

Mark

--
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742                 INTERNET: ma...@isc.org


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Barry Margolin  
View profile  
 More options Oct 31, 4:53 am
Newsgroups: comp.protocols.dns.bind
From: Barry Margolin <bar...@alum.mit.edu>
Date: Sat, 31 Oct 2009 04:53:23 -0400
Local: Sat, Oct 31 2009 4:53 am
Subject: Re: Feature request - disable internal recursion cache
In article <mailman.834.1256928257.14796.bind-us...@lists.isc.org>,
 Kevin Darcy <k...@chrysler.com> wrote:

You don't have to change all the domain registrations.  You just have to
change the A records of the nameserver names.  Hopefully you haven't
done something silly like use different nameserver names for each domain.

--
Barry Margolin, bar...@alum.mit.edu
Arlington, MA
*** PLEASE don't copy me on replies, I'll read them in the group ***


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Hare  
View profile  
 More options Oct 31, 10:16 am
Newsgroups: comp.protocols.dns.bind
From: Michael Hare <michael.h...@doit.wisc.edu>
Date: Sat, 31 Oct 2009 09:16:27 -0500
Local: Sat, Oct 31 2009 10:16 am
Subject: Re: Feature request - disable internal recursion cache

>> Well, except then you need to update all of your delegations. That can
>> not only be an administrative hassle, but can also get very expensive,
>> especially if you have hundreds of them in ccTLDs, where you have to pay
>> your "in-country agent" a fee for every registry change. It's quite a
>> racket.

> You don't have to change all the domain registrations.  You just have to
> change the A records of the nameserver names.  Hopefully you haven't
> done something silly like use different nameserver names for each domain.

Updating the adns A records is great but this doesn't automatically
change firewall rulesets.  I can't control what kind of good or bad
assumptions folks that we are secondaries for made.

I think we can agree that it can be a lot of effort to break auth and
recursive into two IPs no matter what route you go.

I agree that using adns for rdns proxy is suboptimal but sometimes the
lower cost engineering solutions in practice are just as good as the
painful ones.

I mostly threw my hat in the ring so that it would be known that more
than one BIND user could benefit from a feature like this.

-Michael


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matus UHLAR - fantomas  
View profile  
 More options Nov 1, 8:42 am
Newsgroups: comp.protocols.dns.bind
From: Matus UHLAR - fantomas <uh...@fantomas.sk>
Date: Sun, 1 Nov 2009 14:42:25 +0100
Local: Sun, Nov 1 2009 8:42 am
Subject: Re: Feature request - disable internal recursion cache

> Niall O'Reilly wrote:

>>> I think, that be useful make this feature in bind:
>>> Add option to disable internal recursion cache, and forward all  
>>> recursive queries to another daemon.

>>> Daemon as unbound, pdns-recursor - much faster in recursion queries,  
>>> that bind. :(

>>     I don't see the point.

>>     If you need some code, other than BIND named, to handle
>>     recursive queries from your clients, why not just have
>>     that code listening on the addresses configured in the
>>     stub resolver on each of the client systems?

On 30.10.09 13:44, Dmitry Rybin wrote:

> I'll explain, why.
> Same Server is authoritative for internet/intranet and recursive for  
> intranet and one large AS. Sometimes Auth/Rec server IP cannot be spited  
> into different IP's.

> Bind answer authoritative for all clients, and forward (if allowed)  
> recursive queries to recursive server.

why shouldn't it cache those responses?

--
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.
The early bird may get the worm, but the second mouse gets the cheese.


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dmitry Rybin  
View profile  
 More options Nov 2, 10:24 am
Newsgroups: comp.protocols.dns.bind
From: Dmitry Rybin <kirg...@corbina.net>
Date: Mon, 02 Nov 2009 18:24:54 +0300
Local: Mon, Nov 2 2009 10:24 am
Subject: Re: Feature request - disable internal recursion cache

Kevin Darcy wrote:
>> Daemon as unbound, pdns-recursor - much faster in recursion queries,
>> that bind. :(
>> _______________________________________________
> So, you don't cache locally, you forward to another daemon that (in the
> best case) answers from *its* cache.

> How have you improved performance by changing nothing else and adding a
> network hop?

recursion possibilities of bind is very pity in compare with
powerdns-recursor, unbound & so on. It allocate a lot of memory and make
high CPU usage.

Sometimes unable change authoritative and recursive IPs.
The decision is:
Authoritative q: bind answer it
Recursive: pass from bind ACL and proxy all recursive queries to special
recursion daemon.

It'll be very useful option.


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dmitry Rybin  
View profile  
 More options Nov 2, 10:26 am
Newsgroups: comp.protocols.dns.bind
From: Dmitry Rybin <kirg...@corbina.net>
Date: Mon, 02 Nov 2009 18:26:52 +0300
Local: Mon, Nov 2 2009 10:26 am
Subject: Re: Feature request - disable internal recursion cache
Matus UHLAR - fantomas wrote:

>> Bind answer authoritative for all clients, and forward (if allowed)  
>> recursive queries to recursive server.

> why shouldn't it cache those responses?

Bind cache is slow. It allocate a lot of memory and make high CPU usage.

    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kevin Darcy  
View profile  
 More options Nov 2, 1:40 pm
Newsgroups: comp.protocols.dns.bind
From: Kevin Darcy <k...@chrysler.com>
Date: Mon, 02 Nov 2009 13:40:48 -0500
Local: Mon, Nov 2 2009 1:40 pm
Subject: Re: Feature request - disable internal recursion cache

So, you want to add an operational mode to BIND because you
mis-deployed/mis-architected something, and are therefore locked into
using the same IP for recursive and authoritative nameservice?

If you prefer other recursive resolvers to BIND, then go ahead and use
them, you should have planned ahead and provisioned separate IPs so that
you'd have that option.

You might be able to deal with your current predicament by selectively
NAT'ing or PAT'ing incoming recursive queries, to bypass your BIND
instance, e.g. using the "u32" module of iptables, see, e.g. (for
inspiration)
http://www.stupendous.net/archives/2009/01/24/dropping-spurious-nsin-...

But, frankly, anything along those lines would be a kludge.

                                                            - Kevin


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kevin Darcy  
View profile  
 More options Nov 2, 3:57 pm
Newsgroups: comp.protocols.dns.bind
From: Kevin Darcy <k...@chrysler.com>
Date: Mon, 02 Nov 2009 15:57:58 -0500
Local: Mon, Nov 2 2009 3:57 pm
Subject: Re: Feature request - disable internal recursion cache

Unfortunately, the reality of the situation is that many folks have taken
http://cr.yp.to/djbdns/notes.html#gluelessness to heart, despite its
obsolescence, and consider all delegations which *don't* point to names
in the specific domain which is being delegated, to be "glueless" and in
some way inferior to "in-bailiwick" delegations.

So the practice of delegating to domain-unique nameserver names, is
rather rampant, and it means many folks would have to update a *lot* of
records, if they changed the address(es) of their authoritative
nameserver(s). It's not a trivial change at all.

- Kevin


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
JINMEI Tatuya / 神明達哉  
View profile  
 More options Nov 3, 1:28 pm
Newsgroups: comp.protocols.dns.bind
From: JINMEI Tatuya / 神明達哉 <jin...@isc.org>
Date: Tue, 03 Nov 2009 10:28:38 -0800
Local: Tues, Nov 3 2009 1:28 pm
Subject: Re: Feature request - disable internal recursion cache
At Mon, 02 Nov 2009 18:24:54 +0300,

Dmitry Rybin <kirg...@corbina.net> wrote:

> Kevin Darcy wrote:
> >> Daemon as unbound, pdns-recursor - much faster in recursion queries,
> >> that bind. :(
> >> _______________________________________________
> > So, you don't cache locally, you forward to another daemon that (in the
> > best case) answers from *its* cache.

> > How have you improved performance by changing nothing else and adding a
> > network hop?

> recursion possibilities of bind is very pity in compare with
> powerdns-recursor, unbound & so on. It allocate a lot of memory and make
> high CPU usage.

I don't deny in some cases BIND9 caching server may require a lot of
memory and may run slowly, but if you are still using a massive number
of views as you've previously reported:

https://lists.isc.org/pipermail/bind-users/2008-December/074173.html

the excessive number of views can be a main reason for the performance
problems, in which case comparison with other implementations that
don't support views doesn't make much sense.

Anyway, if you want to forward incoming queries to a different server
without caching the results, I believe setting max-cache-ttl (and
perhaps max-ncache-ttl also) to 0 does pretty much of
it. (max-cache-ttl = 0 has a bad effect, as noted in recent ARM, but
if you only care about results from an external forwarder, it should
be okay)

---
JINMEI, Tatuya
Internet Systems Consortium, Inc.


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dmitry Rybin  
View profile  
 More options Dec 2, 9:43 am
Newsgroups: comp.protocols.dns.bind
From: Dmitry Rybin <kirg...@corbina.net>
Date: Wed, 02 Dec 2009 17:43:36 +0300
Local: Wed, Dec 2 2009 9:43 am
Subject: Re: Feature request - disable internal recursion cache
I found answer for my feature request - simple C proxer:
http://www.wolfermann.org/dnsproxy.html

It can forward queries to auth or recursion server. Based on client IPs.

FreeBSD port /usr/ports/dns/dnsproxy/


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dave Sparro  
View profile  
 More options Dec 2, 11:27 am
Newsgroups: comp.protocols.dns.bind
From: Dave Sparro <dspa...@gmail.com>
Date: Wed, 2 Dec 2009 11:27:36 -0500
Local: Wed, Dec 2 2009 11:27 am
Subject: Re: Feature request - disable internal recursion cache

On Wed, Dec 2, 2009 at 9:43 AM, Dmitry Rybin <kirg...@corbina.net> wrote:
> I found answer for my feature request - simple C proxer:
> http://www.wolfermann.org/dnsproxy.html

> It can forward queries to auth or recursion server. Based on client IPs.

What if one of your access customers is running their own DNS server?

It seems like dnsproxy would be much more useful if it performed it's
query routing based on the RD bit.

--
Dave


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kevin Darcy  
View profile  
 More options Dec 2, 11:44 am
Newsgroups: comp.protocols.dns.bind
From: Kevin Darcy <k...@chrysler.com>
Date: Wed, 02 Dec 2009 11:44:50 -0500
Local: Wed, Dec 2 2009 11:44 am
Subject: Re: Feature request - disable internal recursion cache
Dmitry Rybin wrote:
> I found answer for my feature request - simple C proxer:
> http://www.wolfermann.org/dnsproxy.html

> It can forward queries to auth or recursion server. Based on client IPs.

So, what does a dnsproxy approach accomplish, that can't be achieved
with less processes, and less listening ports/addresses, by BIND's
"view" feature? You can have one view for recursive resolution, and
another view that's only authoritative data, with no recursion at all,
and select the view depending on the client source address. This is, in
fact, how many folks (including us) run their Internet-facing
nameservers these days.

Perhaps this is why the dnsproxy code hasn't been updated in over 4
years. It would appear to be obsolete.

- Kevin


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google