summaryrefslogtreecommitdiff
path: root/source4/libcli/resolve
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-09-10 23:01:49 +1000
committerAndrew Tridgell <tridge@samba.org>2009-09-11 14:07:18 +1000
commit294e7cd5665975e72142409cdf18ada3b46d266c (patch)
tree851c1bbdf191f2189a350e1cd2774bd6a7dc8e20 /source4/libcli/resolve
parentbb6fda8a9a4ca85d2b56ff0b0f1d43943495ed31 (diff)
downloadsamba-294e7cd5665975e72142409cdf18ada3b46d266c.tar.gz
samba-294e7cd5665975e72142409cdf18ada3b46d266c.tar.bz2
samba-294e7cd5665975e72142409cdf18ada3b46d266c.zip
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.
Diffstat (limited to 'source4/libcli/resolve')
-rw-r--r--source4/libcli/resolve/dns_ex.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/libcli/resolve/dns_ex.c b/source4/libcli/resolve/dns_ex.c
index 617b179956..1b5037273a 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;
}