summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-11-19 13:36:22 +0100
committerGünther Deschner <gd@samba.org>2010-11-22 12:31:33 +0100
commitf01360efadceeb693aefdf34c78c4ba40c033d53 (patch)
tree14290e3d31164f76498409f7ae952c04d071e6ba /source3/utils
parent9df126d324618ae44ec32da4ebcd5b2c566cf72c (diff)
downloadsamba-f01360efadceeb693aefdf34c78c4ba40c033d53.tar.gz
samba-f01360efadceeb693aefdf34c78c4ba40c033d53.tar.bz2
samba-f01360efadceeb693aefdf34c78c4ba40c033d53.zip
s3-net: use dns_errstr() when dns commands fail.
Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Mon Nov 22 12:31:33 CET 2010 on sn-devel-104
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net_ads.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/utils/net_ads.c b/source3/utils/net_ads.c
index bc83a3d746..1d617c057b 100644
--- a/source3/utils/net_ads.c
+++ b/source3/utils/net_ads.c
@@ -1198,6 +1198,8 @@ static NTSTATUS net_update_dns_internal(TALLOC_CTX *ctx, ADS_STRUCT *ads,
dns_err = DoDNSUpdate(dns_server, dnsdomain, machine_name, addrs, num_addrs);
if (!ERR_DNS_IS_OK(dns_err)) {
+ d_printf(_("DNS Update for %s failed: %s\n"),
+ machine_name, dns_errstr(dns_err));
status = NT_STATUS_UNSUCCESSFUL;
}
@@ -1511,7 +1513,8 @@ static int net_ads_dns_gethostbyname(struct net_context *c, int argc, const char
err = do_gethostbyname(argv[0], argv[1]);
- d_printf(_("do_gethostbyname returned %d\n"), ERROR_DNS_V(err));
+ d_printf(_("do_gethostbyname returned %s (%d)\n"),
+ dns_errstr(err), ERROR_DNS_V(err));
#endif
return 0;
}