From owner-freebsd-net@FreeBSD.ORG Sat Nov 8 16:38:05 2008 Return-Path: Delivered-To: net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B4471106567F for ; Sat, 8 Nov 2008 16:38:05 +0000 (UTC) (envelope-from ume@mahoroba.org) Received: from asuka.mahoroba.org (unknown [IPv6:2001:2f0:104:8010::1]) by mx1.freebsd.org (Postfix) with ESMTP id 2E3958FC27 for ; Sat, 8 Nov 2008 16:38:04 +0000 (UTC) (envelope-from ume@mahoroba.org) Received: from kasuga.mahoroba.org (IDENT:vvWgLIG5yJUSmgXytHZExhyU4XJYfCsQEPspPjjQIXCnQVSJzD3ypYpz+KNtA8sb@kasuga.mahoroba.org [IPv6:2001:2f0:104:8010:20b:97ff:fe2e:b521]) (user=ume mech=CRAM-MD5 bits=0) by asuka.mahoroba.org (8.14.3/8.14.3) with ESMTP/inet6 id mA8Gbw5e090941 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 9 Nov 2008 01:37:58 +0900 (JST) (envelope-from ume@mahoroba.org) Date: Sun, 09 Nov 2008 01:37:58 +0900 Message-ID: From: Hajimu UMEMOTO To: Luigi Rizzo In-Reply-To: References: <20081106192103.GA46651@onelab2.iet.unipi.it> <20081108151023.GA72747@onelab2.iet.unipi.it> User-Agent: xcite1.57> Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.7 Emacs/22.2 (i386-pc-freebsd) MULE/5.0 (SAKAKI) X-Operating-System: FreeBSD 7.1-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=US-ASCII X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (asuka.mahoroba.org [IPv6:2001:2f0:104:8010::1]); Sun, 09 Nov 2008 01:37:59 +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.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on asuka.mahoroba.org Cc: net@freebsd.org Subject: Re: Two copies of resolver routines in libc ? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Nov 2008 16:38:05 -0000 Hi, >>>>> On Sun, 09 Nov 2008 01:29:15 +0900 >>>>> Hajimu UMEMOTO said: ume> It may cause the problem where either example.org or example.com ume> cannot reply correctly. ume> With the change, the query order will be: ume> 1) Call res_nqueryN(hosta, T_A and T_AAAA) ume> Query T_A RR for hosta ume> Query AAAA RR for hosta ume> Query T_A RR for hosta.example.org ume> Query T_AAAA RR for hosta.example.org ume> Query T_A RR for hosta.example.com ume> Query T_AAAA RR for hosta.example.com Oops, it would be: 1) Call res_nqueryN(hosta, T_A and T_AAAA) Query T_A RR for hosta Query AAAA RR for hosta 2) Call res_nqueryN(hosta.example.org, T_A and T_AAAA) Query T_A RR for hosta.example.org Query T_AAAA RR for hosta.example.org 3) Call res_nqueryN(hosta.example.com, T_A and T_AAAA) Query T_A RR for hosta.example.com Query T_AAAA RR for hosta.example.com Sincerely, -- Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan ume@mahoroba.org ume@{,jp.}FreeBSD.org http://www.imasy.org/~ume/