This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Minires truncates host names
- From: "D. Boland" <daniel at boland dot nl>
- To: cygwin at cygwin dot com
- Date: Sun, 06 Jul 2014 09:07:38 +0200
- Subject: Re: Minires truncates host names
- Authentication-results: sourceware.org; auth=none
- References: <53B85C0A dot A51E8FA2 at boland dot nl> <026e01cf9899$491058a0$db3109e0$ at alum dot mit dot edu>
"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@cygwin.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