]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
1270. [func] Nsupdate will report the address the update was
authorMark Andrews <marka@isc.org>
Thu, 18 Apr 2002 00:22:17 +0000 (00:22 +0000)
committerMark Andrews <marka@isc.org>
Thu, 18 Apr 2002 00:22:17 +0000 (00:22 +0000)
                        sent to.

CHANGES
bin/nsupdate/nsupdate.c

diff --git a/CHANGES b/CHANGES
index e06760bda28c5cb405e2b99606bff969c168ed8f..6fcdec24d65491f8c45f69e36f6c846a4722bb7f 100644 (file)
--- 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]
 
index 8c671954bd38b313214986b69326e20cc603631e..2e6e9022d8cc9029b103a3b655d5a9f3ccf774e9 100644 (file)
@@ -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 <config.h>
 
@@ -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,