From: Mark Andrews Date: Thu, 18 Apr 2002 00:22:17 +0000 (+0000) Subject: 1270. [func] Nsupdate will report the address the update was X-Git-Tag: v9.0.1^2~8397 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=15f358ed4ea081793041bbfba70849be472236d3;p=thirdparty%2Fbind9.git 1270. [func] Nsupdate will report the address the update was sent to. --- diff --git a/CHANGES b/CHANGES index e06760bda28..6fcdec24d65 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ +1270. [func] Nsupdate will report the address the update was + sent to. + 1269. [bug] Missing masters clause was not handled gracefully. [RT #2703] diff --git a/bin/nsupdate/nsupdate.c b/bin/nsupdate/nsupdate.c index 8c671954bd3..2e6e9022d8c 100644 --- a/bin/nsupdate/nsupdate.c +++ b/bin/nsupdate/nsupdate.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: nsupdate.c,v 1.117 2002/02/20 03:33:37 marka Exp $ */ +/* $Id: nsupdate.c,v 1.118 2002/04/18 00:22:17 marka Exp $ */ #include @@ -1465,6 +1465,12 @@ send_update(dns_name_t *zonename, isc_sockaddr_t *master, result = dns_message_setsig0key(updatemsg, sig0key); check_result(result, "dns_message_setsig0key"); } + if (debugging) { + char addrbuf[ISC_SOCKADDR_FORMATSIZE]; + + isc_sockaddr_format(master, addrbuf, sizeof(addrbuf)); + fprintf(stderr, "Sending update to %s\n", addrbuf); + } result = dns_request_createvia(requestmgr, updatemsg, srcaddr, master, options, tsigkey, FIND_TIMEOUT, global_task,