From owner-freebsd-net@FreeBSD.ORG Wed Feb 13 03:09:56 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 0C9D716A417; Wed, 13 Feb 2008 03:09:56 +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 65E7513C468; Wed, 13 Feb 2008 03:09:55 +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 328F928479; Wed, 13 Feb 2008 11:09:52 +0800 (CST) Received: from localhost (unknown [202.108.54.204]) by tarsier.geekcn.org (Postfix) with ESMTP id DAA16EB37C9; Wed, 13 Feb 2008 11:09:51 +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 VDXyp0vzrlnq; Wed, 13 Feb 2008 11:09:45 +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 7CC02EB3798; Wed, 13 Feb 2008 11:09:43 +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=lR7cHMtHlGSR7blpB5gCIeYv4AmIsDKLI5WnYtRun8jTBihWvloyf9eUAJUUVvMEA P6xrsp+W/YgjujAp9/iXg== Message-ID: <47B25F71.3050005@delphij.net> Date: Tue, 12 Feb 2008 19:09:37 -0800 From: Xin LI Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.9 (X11/20080122) MIME-Version: 1.0 To: Edwin Groothuis References: <47B2488D.70707@delphij.net> <20080213015144.GA3957@k7.mavetju> <47B2591D.4000703@delphij.net> <20080213024643.GB3957@k7.mavetju> In-Reply-To: <20080213024643.GB3957@k7.mavetju> 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, d@delphij.net, 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:09:56 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 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"); 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) iD8DBQFHsl9xi+vbBBjt66ARAmtfAJ9eNxc9lsWeAdRKbTHCiNH7sFKp/ACeKRIz CaY5Vm97cwf8BV0S1RqCVg8= =3LOM -----END PGP SIGNATURE-----