BIND 8.2.3 fails to load signed zone data
G Muthukumar
muthukumar.guhadoss at wipro.com
Tue Feb 6 11:15:53 UTC 2001
Hi,
BIND 8.2.3 has trouble loading signed zone data.
Using the file generated by dns_signer as an input(data) file for
named (8.2.3), errors like these are seen in syslog:
Feb 5 17:04:15 wais named[18488]: db.eng.signed:9: Original TTL value bad error near (86400)
Feb 5 17:04:15 wais named[18488]: Zone "eng.sequent.com" (file db.eng.signed): No default TTL ($TTL <value>) set, using SOA minimum instead
Feb 5 17:04:15 wais named[18488]: db.eng.signed: Line 10: Unknown type: AikWXPjTwEbl0AtMr7jWkVGMiHsOGZER2td9ebJdWKFDzKnK.
Feb 5 17:04:15 wais named[18488]: db.eng.signed:10: Original TTL value bad error near (AikWXPjTwEbl0AtMr7jWkVGMiHsOGZER2td9ebJdWKFDzKnK)
.
.
.
Feb 5 17:04:25 wais named[18488]: master zone "eng.sequent.com" (IN) rejected d
ue to errors (serial 2001020501)
These errors are observed for all the SIG records in the file. BIND
8.2.2-P5/P7 does not have this problem.
Comparing BIND 8.2.2-P7 & BIND 8.2.3, the offending code is found to
be in parse_sig_rr() of db_load.c [if (origTTL >= 0 || wordtouint32_error ||]
Applying the following diff solved the problem:
*** db_load.c Tue Feb 6 16:15:13 2001
--- db_load.c.org Tue Feb 6 16:12:35 2001
***************
*** 2178,2184 ****
} else {
/* Parse and output OTTL; scan TEXP */
origTTL = wordtouint32(buf);
! if (0 >= origTTL || wordtouint32_error ||
(origTTL > 0x7fffffff))
ERRTO("Original TTL value bad");
cp = &data[i];
--- 2178,2184 ----
} else {
/* Parse and output OTTL; scan TEXP */
origTTL = wordtouint32(buf);
! if (origTTL >= 0 || wordtouint32_error ||
(origTTL > 0x7fffffff))
ERRTO("Original TTL value bad");
cp = &data[i];
***** Code diff ends *****
Regards,
Muthu
More information about the bind-workers
mailing list