From owner-freebsd-stable@FreeBSD.ORG Sun Feb 19 20:57:16 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 CBC9316A420 for ; Sun, 19 Feb 2006 20:57:16 +0000 (GMT) (envelope-from rosti.bsd@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.195]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6D11243D49 for ; Sun, 19 Feb 2006 20:57:15 +0000 (GMT) (envelope-from rosti.bsd@gmail.com) Received: by wproxy.gmail.com with SMTP id 69so493151wri for ; Sun, 19 Feb 2006 12:57:14 -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=Mv1PBv36msd5Z2/etF5+SfLI15QKu3ZavB/QlEGYOYVtbaDTl4kQpibvoicZeH4PdqvwvypEJ4RJ0UAK0fu2vtRTCQHJuMQYPXHZFY/27aV2WenB7Ba0jmmrZZRNq8Sxf+GZOicDpkjjyi3KCNw3VZ4Cq1gwbxAJ7gBPtiOo0ug= Received: by 10.65.59.15 with SMTP id m15mr346398qbk; Sun, 19 Feb 2006 12:57:14 -0800 (PST) Received: from saturn.lan ( [212.143.154.227]) by mx.gmail.com with ESMTP id e16sm141442qbe.2006.02.19.12.57.10; Sun, 19 Feb 2006 12:57:14 -0800 (PST) Date: Sun, 19 Feb 2006 22:57:01 +0200 From: Rostislav Krasny To: Yar Tikhiy Message-Id: <20060219225701.0e3e244b.rosti.bsd@gmail.com> In-Reply-To: <20060219104912.GB20500@comp.chem.msu.su> References: <59e2ee810512250841t75157e62rec9dc389ac716534@mail.gmail.com> <20051227101621.GA16276@walton.maths.tcd.ie> <86irrfoix5.fsf@xps.des.no> <20060218012029.e146e2ff.rosti.bsd@gmail.com> <20060219104912.GB20500@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, 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: Sun, 19 Feb 2006 20:57:16 -0000 On Sun, 19 Feb 2006 13:49:12 +0300 Yar Tikhiy wrote: > On Sat, Feb 18, 2006 at 01:20:29AM +0200, Rostislav Krasny wrote: > > On Thu, 16 Feb 2006 08:35:18 +0100 > > des@des.no (Dag-Erling Sm??rgrav) wrote: > > > > > David Malone writes: > > > > I did once mail des@ to ask him if he'd mind me changing the default > > > > login timeout for sshd to be (say) 5 minutes rather than 1 minute, > > > > but I think he was busy at the time. Judging by the PR mentioned > > > > above it should be at least 2m30s by default. Des, would you mind > > > > this change being made? > > > > > > No objection, just let me see the patch first. > > > > In conjunction to what David had proposed, what do you think about > > decreasing the RES_DFLRETRY from 4 to 2, like in other systems and in > > BIND9's resolver? > > Could you try this change in your system and report the exact > results, such as output from tcpdump? That is how we could judge > the change in question... Or were the results reported already? Ok, I rebuilded the world and the kernel with this change and tested it with tcpdump and a small program from the bin/62139 PR. During the test I saw two "A? yahoo.com." requests, then two "A? yahoo.com.lan." requests and that all taked only 30 seconds for gethostbyname() to give up with one unreachable DNS. Now it looks better than before. But I think there is still a bug. If I change hostname from "saturn.lan" to just "saturn" I see 4 "A? yahoo.com." requests, like in the PR with "options attemts:2". Why it tries to repeat the requests when the domain name is empty and so is the search list by default? That is the doubling I had wrote about in the PR.