From owner-freebsd-current@FreeBSD.ORG Sun Oct 22 15:59:57 2006 Return-Path: X-Original-To: freebsd-current@FreeBSD.org Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2AF3216A40F; Sun, 22 Oct 2006 15:59:57 +0000 (UTC) (envelope-from ume@mahoroba.org) Received: from ameno.mahoroba.org (gw4.mahoroba.org [218.45.22.175]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8DF6043D46; Sun, 22 Oct 2006 15:59:55 +0000 (GMT) (envelope-from ume@mahoroba.org) Received: from kasuga.mahoroba.org (IDENT:mFzpkMbjrj4lr6WE5LqeHFbil1tOTvtnUmXiJOj4VdphnJOURTGnOA9JJQ9a9YGa@kasuga-iwi.mahoroba.org [IPv6:2001:2f0:104:8010:212:f0ff:fe52:6ac]) (user=ume mech=CRAM-MD5 bits=0) by ameno.mahoroba.org (8.13.8/8.13.8) with ESMTP/inet6 id k9MFxnpx023116 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 23 Oct 2006 00:59:49 +0900 (JST) (envelope-from ume@mahoroba.org) Date: Mon, 23 Oct 2006 00:59:48 +0900 Message-ID: From: Hajimu UMEMOTO To: =?ISO-8859-1?Q?G=E1bor_K=F6vesd=E1n?= In-Reply-To: <453B5F3A.3030804@FreeBSD.org> References: <20061022095811.GA10743@zaphod.nitro.dk> <20061022132225.13299ae6@it.buh.tecnik93.com> <453B5F3A.3030804@FreeBSD.org> User-Agent: xcite1.38> Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.6 Emacs/22.0.50 (i386-pc-freebsd) MULE/5.0 (SAKAKI) X-Operating-System: FreeBSD 6.2-PRERELEASE X-PGP-Key: http://www.imasy.or.jp/~ume/publickey.asc X-PGP-Fingerprint: 1F00 0B9E 2164 70FC 6DC5 BF5F 04E9 F086 BF90 71FE Organization: Internet Mutual Aid Society, YOKOHAMA MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-3.0rc3 (ameno.mahoroba.org [IPv6:2001:2f0:104:8010::1]); Mon, 23 Oct 2006 00:59:50 +0900 (JST) X-Virus-Scanned: by amavisd-new X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.1.6 X-Spam-Checker-Version: SpamAssassin 3.1.6 (2006-10-03) on ameno.mahoroba.org Cc: freebsd-current@FreeBSD.org, "Ion-Mihai \"IOnut\" Tetcu" , "Simon L. Nielsen" Subject: Re: Resolver not always resolving hostnames X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Oct 2006 15:59:57 -0000 Hi, >>>>> On Sun, 22 Oct 2006 14:08:26 +0200 >>>>> G=E1bor K=F6vesd=E1n said: gabor> options attempts: 4 is the correct form and it did help to me. Thank= s. I found the timeout related fix in bind-9.3.3rc2: > 2005. [bug] libbind: Retransmission timeouts should be > based on which attempt it is to the nameserver > and not the nameserver itself. [RT #13548] It may solve your problem. So, could you try this patch, instead? Index: lib/libc/resolv/res_send.c diff -u -p lib/libc/resolv/res_send.c.orig lib/libc/resolv/res_send.c --- lib/libc/resolv/res_send.c.orig Tue Aug 8 04:14:55 2006 +++ lib/libc/resolv/res_send.c Mon Oct 23 00:36:41 2006 @@ -145,7 +145,7 @@ static int send_dg(res_state, int kq, #endif const u_char *, int, - u_char *, int, int *, int, + u_char *, int, int *, int, int, int *, int *); static void Aerror(const res_state, FILE *, const char *, int, const struct sockaddr *, int); @@ -490,7 +490,7 @@ res_nsend(res_state statp, kq, #endif buf, buflen, ans, anssiz, &terrno, - ns, &v_circuit, &gotsomewhere); + ns, try, &v_circuit, &gotsomewhere); if (n < 0) goto fail; if (n =3D=3D 0) @@ -812,8 +812,9 @@ send_dg(res_state statp, #ifdef USE_KQUEUE int kq, #endif - const u_char *buf, int buflen, u_char *ans, int anssiz, - int *terrno, int ns, int *v_circuit, int *gotsomewhere) + const u_char *buf, int buflen, u_char *ans, + int anssiz, int *terrno, int ns, int try, int *v_circuit, + int *gotsomewhere) { const HEADER *hp =3D (const HEADER *) buf; HEADER *anhp =3D (HEADER *) ans; @@ -914,7 +915,7 @@ send_dg(res_state statp, /* * Wait for reply. */ - seconds =3D (statp->retrans << ns); + seconds =3D (statp->retrans << try); if (ns > 0) seconds /=3D statp->nscount; if (seconds <=3D 0) Sincerely, -- Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan ume@mahoroba.org ume@{,jp.}FreeBSD.org http://www.imasy.org/~ume/