From: Andrew Tridgell Date: Thu, 10 Sep 2009 13:01:49 +0000 (+1000) Subject: s4/libcli: when we get a DNS lookup failure show the name X-Git-Tag: talloc-2.0.1~546 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=294e7cd5665975e72142409cdf18ada3b46d266c;p=thirdparty%2Fsamba.git s4/libcli: when we get a DNS lookup failure show the name When tracking down complex connection problems its useful knowing what name lookups failed. --- diff --git a/source4/libcli/resolve/dns_ex.c b/source4/libcli/resolve/dns_ex.c index 617b179956b..1b5037273a2 100644 --- a/source4/libcli/resolve/dns_ex.c +++ b/source4/libcli/resolve/dns_ex.c @@ -371,6 +371,8 @@ static void pipe_handler(struct tevent_context *ev, struct tevent_fd *fde, } if (ret <= 0) { + DEBUG(3,("dns child failed to find name '%s' of type %s\n", + state->name.name, (state->flags & RESOLVE_NAME_FLAG_DNS_SRV)?"SRV":"A")); composite_error(c, NT_STATUS_OBJECT_NAME_NOT_FOUND); return; }