Files
NLnetLabs-domain/test-data/zonefiles/mixedclass.yaml
Ximon EighteenandGitHub 3d3fe59177 Require single class zonefiles by default, and give context if possible on parsing errors. (#477)
- Extend the inplace zone parser to detect violations of the RFC 1035 section 5.2 requirement that a zonefile consist of exactly one class, enabled by default, and extend its error reporting to say what the wrong and expected classes were (and also use this contextual error support for other errors where applicable).

- Remove the default IN last class and allow the last class to be set if needed, as RFC 1035 doesn't define a default class.
2025-04-01 16:07:57 +02:00

17 lines
343 B
YAML

origin: example.com.
zonefile: |
classless 3600 IN TXT \# 4 03 66 6f 6f
ch 3600 CH A 192.168.0.1
result:
- owner: classless.example.com.
class: IN
ttl: 3600
data: !Unknown
rtype: Txt
data: 03666f6f
- owner: ch.example.com.
class: CH
ttl: 3600
data: !A
addr: 192.168.0.1