X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:mime-version :content-type:content-transfer-encoding; q=dns; s=default; b=uOe xuyDuEPuASnuFnxlAw4u8O3es1bgmb2vYsC2P78AEJduIKWbYwXfIueNqa0EqZCx SaB7R4WppuauKbyTkB3/4aUM3XjG70HwCORr8FLUvD0UEJ30PbdbpqSuGijvnLiv aJIhHtX3zm9yN4nPd8sTE0BJMvMCtDHqb5rm1gJQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:mime-version :content-type:content-transfer-encoding; s=default; bh=YHJ5n51lZ CF59UioaI/kzuo+z3U=; b=wgL0HGBJkmEQLjsCCiiJ66ciNIPGdV1JlNxemPrx0 qHv0RcpG2bRfFF6FkNrIItSHPTz1glLVUFO9+1hyxZ8umGKLVXTSjhM8blOK9SXR WHTfwW2JXfDALZBGA3EA0pl9TvFY+ZrCJ/kxBKtHf9CHD6PpLN0M9xVjvreXh0tB Ys= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=3.8 required=5.0 tests=AWL,BAYES_50,RCVD_IN_DNSWL_NONE,SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: vms173023pub.verizon.net From: "Pierre A. Humblet" To: Subject: RE: Minires truncates host names Date: Sun, 06 Jul 2014 19:47:41 -0400 Message-id: <028c01cf9974$ad507120$07f15360$@alum.mit.edu> MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit > -----Original Message----- > From: D. Boland > Sent: Sunday, July 06, 2014 03:08 > > Thanks for the swift reply! > > I looked at Sendmails' source code. Here's the snippet which produces > the output from my first email. It's taken from the file sendmail/domain.c: > > sm_dprintf("dns_getcanonname: trying %s.%s (%s)\n", > host, *dp, # if NETINET6 > qtype == T_AAAA ? "AAAA" : > # endif /* NETINET6 */ > qtype == T_A ? "A" : > qtype == T_MX ? "MX" : > "???"); > errno = 0; > ret = res_querydomain(host, *dp, C_IN, qtype, > answer.qb2, sizeof(answer.qb2)); > > > As you can see, it first prints the host to be looked up, and then > passes the string unaltered to res_querydomain. > You are right, there is a bug in res_querydomain, Line 737 *(ptr++ - 1) = '.'; should be *ptr++ = '.'; I would also add a debug printf at the top of the function: DPRINTF(statp->options & RES_DEBUG, "querydomain \"%s\" \"%s\" type %d\n", Name, DomName, Type); Unfortunately I am not setup to build Cygwin so I can't test the above nor submit a proper patch. Pierre -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple