Bug 81 - Unknown types not supported correctly
Unknown types not supported correctly
Status: RESOLVED FIXED
Product: NSD
Classification: Unclassified
Component: Zonec Code
2.1.x
All Linux
: P2 normal
Assigned To: NSD team
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2004-05-17 10:08 CEST by Erik Rozendaal
Modified: 2004-05-18 13:17 CEST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Rozendaal 2004-05-17 10:08:19 CEST
From Jakob Schlyter's e-mail:

the nsd 2.1.0 parser have a problem with long lines and unknown types.

zonec: reading zone "schlyter.se".
 ERR: Line 49 in slave/schlyter.se: syntax error
 ERR: Line 51 in slave/schlyter.se: syntax error
 ERR: Line 106 in slave/schlyter.se: syntax error
 ERR: Line 108 in slave/schlyter.se: syntax error
 ERR: Line 119 in slave/schlyter.se: syntax error
 ERR: Line 121 in slave/schlyter.se: syntax error

...
46 criollo 86400   IN      A       195.47.254.130
47         86400   IN      LOC     57 41 53.100 N 11 58 02.600 E 13.00m 10.00m
10.00m 2.00m
48         86400   IN      TYPE44  \# 22 ( 01018d63e8f800790e2f108fcad2f2af5dcca963
49                                 13c8 )
50         86400   IN      TYPE44  \# 22 ( 0201e521a50c619b3629d674c1097b13610db2c0
51                                 063a )
...
Comment 1 Miek Gieben 2004-05-18 10:55:26 CEST
I assume this is from the unknown-rr's test zone file? I will use that then to
debug and fix this.

Thanks, Miek
Comment 2 Miek Gieben 2004-05-18 13:17:27 CEST
The parsing of unknown types which _are_ known was plain wrong. That is fixed
now, your zone (+the unknown rr test zone) now compiles with:

% ~/cvs/nsd/zonec 3597.conf -f 3597.db
 ERR: Line 21 in 3597: UKNOWN RR rdata for this type not handled (yet)
 ERR: Line 23 in 3597: UKNOWN RR rdata for this type not handled (yet)
 ERR: Line 31 in 3597: \# 0 not handled (yet)
zonec: done with 3 errors.

All TYPE44 are now handled correctly.