Cannot unset uppercase nodes via control interface
System: KnotDNS 2.9.2
Problem:
I can create records such as AAA.example.cz 3600 TXT "abc"
, but I cannot remove them. The problem is the same for normal and nsec3 nodes.
Steps to reproduce:
- Create uppercase record
# knotc zone-begin example.cz
# knotc zone-set example.cz AAA.example.cz. 3600 TXT "abc"
# knotc zone-commit example.cz
- Read created record
# knotc zone-read example.cz
...
[example.cz.] AAA.example.cz. 3600 TXT "abc"
...
- Unset this record
# knotc zone-begin example.cz
# knotc zone-unset example.cz AAA
error: (no such node in zone found) [example.cz] AAA
Possible solutions:
I see two solutions - do not allow to create such records at all and report an error immediately or to create such records with already lowercased owners. The second approach is in my opinion slightly better, because some tools like dnssec-signzone
from BIND utils generate NSEC3 records with uppercase letters.
Thank you,
-Petr