How to force named to write dynamic data
Bob Vance
bobvance at alumni.caltech.edu
Sun Jan 14 19:55:57 UTC 2001
Thanks, Mark.
Yes, indeed, that fixed the problem with "\032" (space)
(and with "\064" and "\046", as well :)
-------------------------------------------------
Tks | <mailto:BVance at sbm.com>
BV | <mailto:BobVance at alumni.caltech.edu>
Sr. Technical Consultant, SBM, A Gates/Arrow Co.
Vox 770-623-3430 11455 Lakefield Dr.
Fax 770-623-3429 Duluth, GA 30097-1511
=================================================
-----Original Message-----
From: marka at nominum.com [mailto:marka at nominum.com]On Behalf Of
Mark.Andrews at nominum.com
Sent: Sunday, January 14, 2001 4:04 AM
To: BVance at sbm.com
Cc: sbm-BIND-L (E-mail)
Subject: Re: How to force named to write dynamic data
The following should fix the problem.
Fixing problems like this was one of the design goals of
BIND 9. BIND 8 has way too many places parsing both wire
and text input. BIND 9 has one set of routines.
Mark
Index: src/bin/named/ns_update.c
===================================================================
RCS file: /proj/cvs/isc/bind8/src/bin/named/ns_update.c,v
retrieving revision 8.88
diff -u -r8.88 ns_update.c
--- ns_update.c 2000/12/23 08:14:43 8.88
+++ ns_update.c 2001/01/14 08:58:39
@@ -2340,7 +2340,7 @@
break;
}
/* Owner's domain name. */
- if (!getword((char *)dnbuf, sizeof dnbuf, fp, 0)) {
+ if (!getword((char *)dnbuf, sizeof dnbuf, fp, 1)) {
err++;
break;
}
> I've tracked the problem down.
> It requires the following:
>
> 1. 'nsupdate' name has encoded blanks, "\032"
> 2. kill -9 <named>
> after the dynamic update
> 3. restart 'named' and let it load from the *.log files
>
> (I know you'll say quit worrying about blanks, but if we're
> gonna try to handle them, then we should do it correctly.
> )
>
>
> The problem appears to be a bug in 'named' reloading info from the log
> files after a restart *if* the name has encoded blanks in it, "\032"
> %~/
> It drops the "\" from the "\032" *without* decoding it into a blank,
> simply leaving a "032" .
More information about the bind-users
mailing list