From owner-freebsd-net@FreeBSD.ORG Wed Feb 13 03:18:22 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5F85B16A46B; Wed, 13 Feb 2008 03:18:22 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.delphij.net (delphij-pt.tunnel.tserv2.fmt.ipv6.he.net [IPv6:2001:470:1f03:2c9::2]) by mx1.freebsd.org (Postfix) with ESMTP id D8CFA13C4E1; Wed, 13 Feb 2008 03:18:20 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.geekcn.org (unknown [202.108.54.204]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tarsier.delphij.net (Postfix) with ESMTP id 9A83D28472; Wed, 13 Feb 2008 11:18:19 +0800 (CST) Received: from localhost (unknown [202.108.54.204]) by tarsier.geekcn.org (Postfix) with ESMTP id 67F16EB3801; Wed, 13 Feb 2008 11:18:19 +0800 (CST) X-Virus-Scanned: amavisd-new at geekcn.org Received: from tarsier.geekcn.org ([202.108.54.204]) by localhost (mail.geekcn.org [202.108.54.204]) (amavisd-new, port 10024) with ESMTP id RuTm0y2YPuAW; Wed, 13 Feb 2008 11:18:13 +0800 (CST) Received: from charlie.delphij.net (71.5.7.139.ptr.us.xo.net [71.5.7.139]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tarsier.geekcn.org (Postfix) with ESMTP id 6147AEB1773; Wed, 13 Feb 2008 11:18:10 +0800 (CST) DomainKey-Signature: a=rsa-sha1; s=default; d=delphij.net; c=nofws; q=dns; h=message-id:date:from:reply-to:organization:user-agent: mime-version:to:cc:subject:references:in-reply-to: x-enigmail-version:openpgp:content-type:content-transfer-encoding; b=PYGzJPeuH/t9QSwk4TWXBVq/er5vUGauDPdWO/BqxThxbBR4+7hqd+V8amTkmj9Jw 8R6Z0mesxRrpkaG9dnBpg== Message-ID: <47B26170.1010905@delphij.net> Date: Tue, 12 Feb 2008 19:18:08 -0800 From: Xin LI Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.9 (X11/20080122) MIME-Version: 1.0 To: d@delphij.net References: <47B2488D.70707@delphij.net> <20080213015144.GA3957@k7.mavetju> <47B2591D.4000703@delphij.net> <20080213024643.GB3957@k7.mavetju> <47B25F71.3050005@delphij.net> In-Reply-To: <47B25F71.3050005@delphij.net> X-Enigmail-Version: 0.95.5 OpenPGP: id=18EDEBA0; url=http://www.delphij.net/delphij.asc Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org, Edwin Groothuis , ume@FreeBSD.org Subject: Re: Strange resolver behavior X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: d@delphij.net List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Feb 2008 03:18:22 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Xin LI wrote: > Edwin Groothuis wrote: >> On Tue, Feb 12, 2008 at 06:42:37PM -0800, Xin LI wrote: >>> -----BEGIN PGP SIGNED MESSAGE----- >>> Hash: SHA1 >>> >>> Edwin Groothuis wrote: >>>> On Tue, Feb 12, 2008 at 05:31:57PM -0800, Xin LI wrote: >>>>> Received 127 bytes from 127.0.0.1#53 in 0 ms >>>>> [delphij@charlie] ~> host ps_other.a.shifen.com >>>>> ps_other.a.shifen.com has address 202.108.22.46 >>>>> Host ps_other.a.shifen.com not found: 3(NXDOMAIN) >>>> 12:49:45.620015 IP 10.251.1.18.51852 > 202.108.22.102.53: 18450 MX? ps_other.a.shifen.com. (39) >>>> 12:49:46.086227 IP 202.108.22.102.53 > 10.251.1.18.51852: 18450 NotImp*- 0/0/0 (39) >>>> >>>> That's the one it is complaining about, not about the hostname >>>> itself. >>>> >>>> Yes, the warning/error message could be a little bit smarter. >>> Em... That's fine I think, it does not seem to be the MX to cause the >>> problem, though. I have tried to visit 'dict.baidu.com' in Firefox and >>> it told me that the name can not resolve. tcpdump indicates that the >>> server has respond the A RR but resolver still queries AAAA... >> Yes, but it is the MX record querying it is complaining about. > > Well, so perhaps that they are different problems? > > What I think is a problem is that attempting to resolve > 'ps_other.a.shifen.com' gets "Unknown host", here is a quick testcase: > > #include > #include > > int > main(void) > { > struct hostent *p; > > p = gethostbyname("ps_other.shifen.com"); My bad, here should be ps_other.a.shifen.com, and the return value was Unknown server error (NO_RECOVERY)... > if (p == NULL) > herror("resolve"); > > return 0; > } > > > Cheers, - -- Xin LI http://www.delphij.net/ FreeBSD - The Power to Serve! -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFHsmFwi+vbBBjt66ARAgSbAKC0HnuKQq/nsG26K6cIHNl/+ngXoQCfauon FH7CJa2ZrnBUkUK/NsVWv3c= =JENV -----END PGP SIGNATURE-----