]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4/libcli: when we get a DNS lookup failure show the name
authorAndrew Tridgell <tridge@samba.org>
Thu, 10 Sep 2009 13:01:49 +0000 (23:01 +1000)
committerAndrew Tridgell <tridge@samba.org>
Fri, 11 Sep 2009 04:07:18 +0000 (14:07 +1000)
When tracking down complex connection problems its useful knowing what
name lookups failed.

source4/libcli/resolve/dns_ex.c

index 617b179956b344ea5b38e184be67b5f6a74c3bad..1b5037273a257aa71b059d8220bb12b5acee84fa 100644 (file)
@@ -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;
        }