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:to:from:subject:date:message-id:references :mime-version:content-type:content-transfer-encoding; q=dns; s= default; b=a7ELN5+JeudZV7wF13lEEW6qOC+MJuf2OK2iUM0frlbpSe+MkbOyu WQsTcz1vrLwcxr7W3O1eNZGIwFVCNXpa46MJNCV73IwGoRt9HTHnrhRziRTXVT+G /BV7lv7LAok9kYPNQ+8U2VWuwYYf9916jxkB00nGFb+470YBRbpFZI= 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:to:from:subject:date:message-id:references :mime-version:content-type:content-transfer-encoding; s=default; bh=eg4/noZpBi4f8/1PegudiQ4fozM=; b=QsLQ0/y4DfttBBfBOJWupcq6aXAe 85dNTdmCsAyTZudaHAU7pw1SC8be7G8Lxa/SL8/NflYD8ajtAwdnw1nE+RYMSo6i GKe61BBmO6B3dYpCtYc0MKpAVuoHJIuYWIAj/z6NG8ttpCW7F+i1gGK5hiqJgyum koxS+niouBD6tK4= 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=0.3 required=5.0 tests=AWL,BAYES_05,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: plane.gmane.org To: cygwin AT cygwin DOT com From: "D. Boland" Subject: Re: Minires truncates host names Date: Sun, 06 Jul 2014 09:07:38 +0200 Lines: 35 Message-ID: <53B8F5BA.2E4770D4@boland.nl> References: <53B85C0A DOT A51E8FA2 AT boland DOT nl> <026e01cf9899$491058a0$db3109e0$@alum.mit.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes "Pierre A. Humblet" wrote: > To me it looks like the string was already truncated when it was passed to > the function. > > You can test e.g. by using exim -d+resolver -bt daniel AT cygwin DOT com > > It's wonderful that you got sendmail to work. > > Pierre > 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. I will create a source release, so it can be tested. Daniel -- 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