nsupdate and Bind 9.1.0

Mark.Andrews at nominum.com Mark.Andrews at nominum.com
Thu May 17 00:51:47 UTC 2001


Index: bin/nsupdate/nsupdate.c
===================================================================
RCS file: /proj/cvs/isc/bind9/bin/nsupdate/nsupdate.c,v
retrieving revision 1.75.2.6
retrieving revision 1.75.2.7
diff -u -r1.75.2.6 -r1.75.2.7
--- nsupdate.c	2001/05/02 22:27:08	1.75.2.6
+++ nsupdate.c	2001/05/08 17:54:37	1.75.2.7
@@ -15,7 +15,7 @@
  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: nsupdate.c,v 1.75.2.6 2001/05/02 22:27:08 gson Exp $ */
+/* $Id: nsupdate.c,v 1.75.2.7 2001/05/08 17:54:37 gson Exp $ */
 
 #include <config.h>
 
@@ -806,7 +806,8 @@
 				     updatemsg, rdata);
 		if (retval != STATUS_MORE)
 			return (retval);
-	}
+	} else
+		rdata->flags = DNS_RDATA_UPDATE;
 
 	result = dns_message_gettemprdatalist(updatemsg, &rdatalist);
 	check_result(result, "dns_message_gettemprdatalist");
> 
> Hi
> 
> I recently upgraded our servers to Bind 9.1.0 (redHat 7.1) and now have
> an odd problem with nsupdate. I can use nsupdate to add hosts thus :
> 
> 
> //================================
> nsupdate -d
> > server ewok
> > prereq yxdomain awiftest.org.
> > prereq nxdomain ww7.awiftest.org.
> > update add ww7.awiftest.org. 86400 in a 192.168.1.80
> > 
> Reply from SOA query:
> ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id:  27778
> ;; flags: qr aa rd ra ; QUESTION: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
> ;; QUESTION SECTION:
> ;ww7.awiftest.org.		IN	SOA
> 
> ;; AUTHORITY SECTION:
> awiftest.org.		0	IN	SOA	awiftest.org. root.localhost.aw
> iftest.org. 2 28800 7200 604800 86400
> 
> 
> Found zone name: awiftest.org
> The master is: awiftest.org
> 
> Reply from update query:
> ;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id:  46657
> ;; flags: qr ra ; ZONE: 0, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0
> 
> //=======================================
> 
> 
> But if I try to add an MX record, or even test a prereq with an MX
> record I get this error :
> 
> nsupdate -d
> > server ewok
> > prereq nxrrset awiftest.org. in mx
> > prereq nxrrset awiftest.org. in mx 10 mail.webstar.co.uk
> > update add ww7.awiftest.org. 86400 in a 195.138.224.3
> > 
> Reply from SOA query:
> ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id:  49123
> ;; flags: qr aa rd ra ; QUESTION: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
> ;; QUESTION SECTION:
> ;ww7.awiftest.org.		IN	SOA
> 
> ;; AUTHORITY SECTION:
> awiftest.org.		0	IN	SOA	awiftest.org. root.localhost.aw
> iftest.org. 4 28800 7200 604800 86400
> 
> 
> Found zone name: awiftest.org
> The master is: awiftest.org
> rdata/generic/mx_15.c:106: REQUIRE(rdata->length != 0) failed.
> Aborted
> 
> //====================
> 
> 
> Can anyone help ? This used to work with Bind 8.2.3.
> 
> Any help would be greatly appreciated.
> 
> thanks in advance
> 
> Arif
> 
--
Mark Andrews, Nominum Inc.
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742                 INTERNET: Mark.Andrews at nominum.com


More information about the bind-users mailing list