From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/3958 Path: news.gmane.org!not-for-mail From: orc Newsgroups: gmane.linux.lib.musl.general Subject: Re: dn_expand() confuses postfix Date: Sun, 25 Aug 2013 16:42:20 +0800 Message-ID: <20130825164220.2801654a@sibserver.ru> References: <20130814021920.7e719d8f@sibserver.ru> <20130814220625.GT221@brightrain.aerifal.cx> <20130815141422.3bc4502c@sibserver.ru> <20130825064321.GT20515@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1377420228 24919 80.91.229.3 (25 Aug 2013 08:43:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 25 Aug 2013 08:43:48 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-3962-gllmg-musl=m.gmane.org@lists.openwall.com Sun Aug 25 10:43:48 2013 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1VDVvI-0004CP-4R for gllmg-musl@plane.gmane.org; Sun, 25 Aug 2013 10:43:48 +0200 Original-Received: (qmail 19524 invoked by uid 550); 25 Aug 2013 08:43:42 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 19511 invoked from network); 25 Aug 2013 08:43:39 -0000 In-Reply-To: <20130825064321.GT20515@brightrain.aerifal.cx> X-Mailer: claws-mail Xref: news.gmane.org gmane.linux.lib.musl.general:3958 Archived-At: On Sun, 25 Aug 2013 02:43:21 -0400 Rich Felker wrote: > On Thu, Aug 15, 2013 at 02:14:22PM +0800, orc wrote: > > Other issue now: > > > > ../test_dns_lookup: lookup yandex.ru type MX flags 2 > > ../test_dns_lookup: dns_query: yandex.ru (MX): OK > > ../test_dns_lookup: warning: valid_hostname: invalid character > > 6(decimal): ?yande.?r ../test_dns_lookup: warning: malformed domain > > name in resource name of MX record > > for ?yande.?r: ?yande.?r ../test_dns_lookup: fatal: Name service > > error for name=yandex.ru type=MX: Malformed or unexpected name > > server reply > > > > ../test_dns_lookup: lookup ya.ru type MX flags 2 > > ../test_dns_lookup: dns_query: ya.ru (MX): OK > > ../test_dns_lookup: warning: valid_hostname: invalid character > > 2(decimal): ?y.?r ../test_dns_lookup: warning: malformed domain > > name in resource name of MX record > > for ?y.?r: ?y.?r ../test_dns_lookup: fatal: Name service error for > > name=ya.ru type=MX: Malformed or unexpected name server reply > > > > temp buffer at src/dns/dns_lookup.c:287 is messed up with these. > > I believe this was actually a nasty regression in the dn_expand "fix" > -- somehow I thought my tests were checking reverse dns, but they > weren't, and the new code actually had a bad off-by-one error. It > should be fixed now. Let me know if you're still experiencing > problems. > > Rich Yes, it works now. Thanks! % ./test_dns_lookup mx google.com ./test_dns_lookup: lookup google.com type MX flags 2 ./test_dns_lookup: dns_query: google.com (MX): OK ./test_dns_lookup: dns_get_answer: type MX for google.com ./test_dns_lookup: dns_get_answer: type MX for google.com ./test_dns_lookup: dns_get_answer: type MX for google.com ./test_dns_lookup: dns_get_answer: type MX for google.com ./test_dns_lookup: dns_get_answer: type MX for google.com google.com: fqdn: google.com google.com: ttl: 600 pref: 50 MX: alt4.aspmx.l.google.com google.com: ttl: 600 pref: 40 MX: alt3.aspmx.l.google.com google.com: ttl: 600 pref: 20 MX: alt1.aspmx.l.google.com google.com: ttl: 600 pref: 10 MX: aspmx.l.google.com google.com: ttl: 600 pref: 30 MX: alt2.aspmx.l.google.com % ./test_dns_lookup mx ya.ru ./test_dns_lookup: lookup ya.ru type MX flags 2 ./test_dns_lookup: dns_query: ya.ru (MX): OK ./test_dns_lookup: dns_get_answer: type MX for ya.ru ya.ru: fqdn: ya.ru ya.ru: ttl: 6580 pref: 10 MX: mx.yandex.ru