Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.protocols.dns.bind > #15755

Re: How to disable recursion on ONE domain? (Bind-9.11.14)

Path csiph.com!news.uzoreto.com!news.etla.org!nntp-feed.chiark.greenend.org.uk!ewrotcd!usenet-its.stanford.edu!usenet.stanford.edu!not-for-mail
From Chris Palmer <chris9@cpalmer.me.uk>
Newsgroups comp.protocols.dns.bind
Subject Re: How to disable recursion on ONE domain? (Bind-9.11.14)
Date Fri, 15 May 2020 13:40:48 +0100
Lines 54
Approved bind-users@lists.isc.org
Message-ID <mailman.406.1589546441.942.bind-users@lists.isc.org> (permalink)
References <ad25d613-9526-108d-cb6a-c680233131d9@cpalmer.me.uk> <94A17804-1919-42F3-A4E2-713064FCB15F@isc.org> <ec2c07e0-8842-4fa2-1921-3319e0542a97@cpalmer.me.uk>
NNTP-Posting-Host lists.isc.org
Mime-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 8bit
X-Trace usenet.stanford.edu 1589546458 22596 149.20.1.60 (15 May 2020 12:40:58 GMT)
X-Complaints-To action@cs.stanford.edu
To bind-users <bind-users@lists.isc.org>
Return-Path <chris9@cpalmer.me.uk>
X-Original-To bind-users@lists.isc.org
Delivered-To bind-users@lists.isc.org
DKIM-Signature v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=cpalmer.me.uk; s=1; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:From:References:To:Subject:Sender:Reply-To:Cc: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=DWRvboOMt4DAAZ1+Pz4gRG8TaAWE9tQINsSeB8R4rhI=; b=bmHsJ+M08X2ZWCSSTW/q1acLw0 PZIML+ZKKMxVWJ+zRbPEvX7ruotwIN+jGEGfN6OL7wB0R7FaT8sLj7gzj7HMdfxp0odbM+EknADE1 xrbECW8SQnDbcphuLzfyjXZnl8rHRTl/6ho4Dc+Qmc+YgWzH2/yptEgw2XwxqvgL2vFY=;
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0
In-Reply-To <94A17804-1919-42F3-A4E2-713064FCB15F@isc.org>
Content-Language en-US
X-Spam-Status No, score=0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,KAM_INFOUSMEBIZ,KAM_SHORT,SPF_HELO_NONE, SPF_PASS autolearn=disabled version=3.4.2
X-Spam-Checker-Version SpamAssassin 3.4.2 (2018-09-13) on mx.pao1.isc.org
X-BeenThere bind-users@lists.isc.org
X-Mailman-Version 2.1.29
Precedence list
List-Id BIND Users Mailing List <bind-users.lists.isc.org>
List-Unsubscribe <https://lists.isc.org/mailman/options/bind-users>, <mailto:bind-users-request@lists.isc.org?subject=unsubscribe>
List-Archive <https://lists.isc.org/pipermail/bind-users/>
List-Post <mailto:bind-users@lists.isc.org>
List-Help <mailto:bind-users-request@lists.isc.org?subject=help>
List-Subscribe <https://lists.isc.org/mailman/listinfo/bind-users>, <mailto:bind-users-request@lists.isc.org?subject=subscribe>
X-Mailman-Original-Message-ID <ec2c07e0-8842-4fa2-1921-3319e0542a97@cpalmer.me.uk>
X-Mailman-Original-References <ad25d613-9526-108d-cb6a-c680233131d9@cpalmer.me.uk> <94A17804-1919-42F3-A4E2-713064FCB15F@isc.org>
Xref csiph.com comp.protocols.dns.bind:15755

Show key headers only | View raw


Hi Ondřej

That could work for eliminating the caching delay when the VPN comes up. 
I'd just have to get that into the VPN config so people didn't have to 
do it manually.

Is there any way to stop the recursion for that domain happening in the 
first place though?

Thanks, Chris


On 15/05/2020 13:34, Ondřej Surý wrote:
> Hi Chris,
> 
> when your vpn comes up, you need to issue:
> 
> rndc flushtree <domain>
> 
> command to the BIND 9 instance.
> 
> Ondrej
> --
> Ondřej Surý
> ondrej@isc.org
> 
>> On 15 May 2020, at 14:16, Chris Palmer via bind-users <bind-users@lists.isc.org> wrote:
>>
>> There is much discussion about recursion but I can't find anything that matches this use case...
>>
>> - In-house Bind-9.11.14 server, master for some local zones, recursion enabled; not accessible from external networks
>> - Two views for in-house networks
>> - Intermittent VPN access from in-house network to another private network that is master for DNS zone x.y.zzz; this network is not publicly reachable
>> - Need queries from one of our views for x.y.zzz to be sent to the static address for the x.y.zzz server that is only reachable via the VPN
>> - When the VPN is not connected, need the lookup on to fail/timeout rather than go through the recursion path
>> - When the VPN is again connected need lookups to succeed without undue delay.
>>
>> Within the required view I have tried a zone with type forward (specifying forwarders and forward only), and also a zone of type static-stub (specifying server-addresses). Both work fine when the VPN is up. Both have two problems though when the VPN is disconnected:
>>        (a) the queries are recursed and an NXDOMAIN response cached.
>>        (b) When the VPN comes back up the cached NXDOMAIN is served until it expires.
>>
>> I have been trying to force a SERVFAIL when the specified servers for that domain are unreachable, rather than recursing. And presumably that would then cause the queries to quickly flow to the required servers once they are reachable again. Is that possible, or is there another approach to this problem?
>>
>> Many thanks, Chris
>> _______________________________________________
>> Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list
>>
>> ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.
>>
>>
>> bind-users mailing list
>> bind-users@lists.isc.org
>> https://lists.isc.org/mailman/listinfo/bind-users
> 

Back to comp.protocols.dns.bind | Previous | Next | Find similar


Thread

Re: How to disable recursion on ONE domain? (Bind-9.11.14) Chris Palmer <chris9@cpalmer.me.uk> - 2020-05-15 13:40 +0100

csiph-web