mirror of
https://github.com/NLnetLabs/domain.git
synced 2026-08-23 07:52:24 +02:00
- 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.
24 lines
506 B
YAML
24 lines
506 B
YAML
origin: example.com.
|
|
default_class: CH
|
|
zonefile: |
|
|
classless 3600 TXT \# 4 03 66 6f 6f
|
|
ch 3600 CH A 192.168.0.1
|
|
defaultclass 3600 A 192.168.0.2
|
|
result:
|
|
- owner: classless.example.com.
|
|
class: CH
|
|
ttl: 3600
|
|
data: !Unknown
|
|
rtype: Txt
|
|
data: 03666f6f
|
|
- owner: ch.example.com.
|
|
class: CH
|
|
ttl: 3600
|
|
data: !A
|
|
addr: 192.168.0.1
|
|
- owner: defaultclass.example.com.
|
|
class: CH
|
|
ttl: 3600
|
|
data: !A
|
|
addr: 192.168.0.2
|