From owner-freebsd-stable@FreeBSD.ORG Tue Feb 28 22:47:25 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AC91616A420 for ; Tue, 28 Feb 2006 22:47:25 +0000 (GMT) (envelope-from rosti.bsd@gmail.com) Received: from uproxy.gmail.com (uproxy.gmail.com [66.249.92.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0069643D46 for ; Tue, 28 Feb 2006 22:47:23 +0000 (GMT) (envelope-from rosti.bsd@gmail.com) Received: by uproxy.gmail.com with SMTP id m2so520245ugc for ; Tue, 28 Feb 2006 14:47:22 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:cc:subject:message-id:in-reply-to:references:x-mailer:mime-version:content-type:content-transfer-encoding; b=GIaOgeCsi9F3+tbmgHLAa3AfKgUm38ShdC7dyhJoGl7SXI7wCINKSUPBmYrKGgN81oUrx+Q8/Ob/7jVtrb1i1xpnn10YpuvjD1c7An98HN3zyRVsA2JDyPUPq0USnd5aW/noSdAXIOvaKlDniTTo4GZd/jbMekQyYiXSN5pIgBU= Received: by 10.67.88.11 with SMTP id q11mr607080ugl; Tue, 28 Feb 2006 14:47:22 -0800 (PST) Received: from saturn.lan ( [212.143.154.227]) by mx.gmail.com with ESMTP id j1sm221196ugf.2006.02.28.14.47.17; Tue, 28 Feb 2006 14:47:20 -0800 (PST) Date: Wed, 1 Mar 2006 00:47:12 +0200 From: Rostislav Krasny To: Hajimu UMEMOTO Message-Id: <20060301004712.ba7eb061.rosti.bsd@gmail.com> In-Reply-To: References: <20060218012029.e146e2ff.rosti.bsd@gmail.com> <20060219104912.GB20500@comp.chem.msu.su> <20060219225701.0e3e244b.rosti.bsd@gmail.com> <20060221165959.GB77513@comp.chem.msu.su> <20060222024430.ad4b5c60.rosti.bsd@gmail.com> <20060223235727.33cddb13.rosti.bsd@gmail.com> <20060224155153.f7da1a52.rosti.bsd@gmail.com> <20060227151954.GV6435@comp.chem.msu.su> X-Mailer: Sylpheed version 2.2.0 (GTK+ 2.8.12; i386-portbld-freebsd6.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org, freebsd-stable-local@be-well.ilk.org, yar@comp.chem.msu.su, dwmalone@maths.tcd.ie, des@des.no, mak@ll.mit.edu, MH@kernel32.de Subject: Re: SSH login takes very long time...sometimes X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Feb 2006 22:47:25 -0000 On Wed, 01 Mar 2006 00:28:14 +0900 Hajimu UMEMOTO wrote: > Hi, > > >>>>> On Mon, 27 Feb 2006 18:19:54 +0300 > >>>>> Yar Tikhiy said: > > yar> I finally spared some time to test your recent changes and found > yar> that the resolver still would retry using the first, and only the > yar> first, domain on the `search' list when the nameserver was down, > yar> which effectively led to another kind of request doubling. > > yar> A similar effect was observed when a `domain' line was specified > yar> in resolv.conf in place of `search'. > > yar> Is there a real reason to retry with a different domain when the > yar> nameserver doesn't respond at all? > > It seems yet another issue. The errors returned by res_querydomain() > are not handled uniformity. Please try following patch: Thank you! After applaying that additional patch a number of DNS queries to unreachable name servers has decreased. Now, with three unreachable name servers in resolv.conf and previously patched (my and your patches) ftpd(8), I can successfully login to this machine by even not patched ftp(1) from other FreeBSD 6.1-pre