Knot 1.5.1 won't load zone with # characters
Hi Knot developers,
Our Knot 1.5.1 server slaves a zone, 0.71.199.in-addr.arpa. Knot can AXFR this zone just fine and serve it, but the zone has a # character in one of the records, which Knot escapes when writing out to disk. However, if I stop Knot and start it again, Knot refuses to load this zone from disk. Here's the log:
2014-09-02T14:48:36 error: [0.71.199.in-addr.arpa] zone loader, error in zone, file '/var/lib/knot/0.71.199.in-addr.arpa.zone', line 172 (invalid record data in hex format)
2014-09-02T14:48:36 error: [0.71.199.in-addr.arpa] zone loader, failed to load zone, file '/var/lib/knot/0.71.199.in-addr.arpa.zone', 1errors
2014-09-02T14:48:36 error: [0.71.199.in-addr.arpa] zone reload failed (failed)
The part of the zone file on disk that it is complaining about is this:
0.71.199.in-addr.arpa. 3600 NSEC #109.0.71.199.in-addr.arpa. NS SOA RRSIG NSEC DNSKEY
So this is a problem, because Knot AXFRs the zone in without any problem, but then cannot read the zone back in upon restart. Also Knot does not recover by itself from this, because it keeps trying to read the zone from disk, and it forces an admin to intervene.
Can this be fixed in some way in Knot?