From owner-freebsd-hackers@FreeBSD.ORG Fri Oct 15 22:48:24 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CD36916A4CE for ; Fri, 15 Oct 2004 22:48:24 +0000 (GMT) Received: from mailserv1.neuroflux.com (mailserv1.neuroflux.com [204.228.228.92]) by mx1.FreeBSD.org (Postfix) with ESMTP id 48B6443D1F for ; Fri, 15 Oct 2004 22:48:24 +0000 (GMT) (envelope-from ryans@gamersimpact.com) Received: (qmail 58995 invoked by uid 89); 15 Oct 2004 22:56:00 -0000 Received: from unknown (HELO www2.neuroflux.com) (127.0.0.1) by localhost with SMTP; 15 Oct 2004 22:56:00 -0000 Received: from 208.4.77.15 (SquirrelMail authenticated user ryans@gamersimpact.com); by www2.neuroflux.com with HTTP; Fri, 15 Oct 2004 16:56:00 -0600 (MDT) Message-ID: <58805.208.4.77.15.1097880960.squirrel@208.4.77.15> In-Reply-To: <20041015165805.62571.qmail@web14822.mail.yahoo.com> References: <20041015165805.62571.qmail@web14822.mail.yahoo.com> Date: Fri, 15 Oct 2004 16:56:00 -0600 (MDT) From: "Ryan Sommers" To: "Rostislav Krasny" User-Agent: SquirrelMail/1.4.3a X-Mailer: SquirrelMail/1.4.3a MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal cc: freebsd-hackers@freebsd.org Subject: Re: Fwd: default resolver(5) configuration and behavior of functions like gethostbyname(3) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Oct 2004 22:48:24 -0000 Rostislav Krasny said: >> Please explain why developers of FreeBSD had chose 4 instead of 2? Maybe >> they should change it to 2, as this default value is defined on most of >> other systems, including NetBSD? Don't know why 4 was chosen instead of 2, haven't had a chance to look at the commit logs. We might have ported over the code from OpenBSD and just didn't change their value. >> why is doubling the number of DNS queries? Is it gethostbyname(3) >> function or the resolver itself? Do you have 2 name servers in /etc/resolv.conf? Or do you have a hostname in /etc/resolv.conf that resolves to multiple IPs? -- Ryan Sommers ryans@gamersimpact.com