Files
Martin HoffmannandGitHub 500930e68d Fix scanning of the root name. (#210)
This PR fixes scanning (i.e., reading from presentation format) of domain
names that are just the root label. It also fixes how they are displayed:
previously they were empty, now they are displayed as a dot. It also adds a
new method Dname::fmt_with_dot that returns a placeholder type that displays
the name with a dot at the end.
2023-09-18 14:22:36 +02:00

64 lines
1.2 KiB
YAML

origin: example.com.
zonefile: |
$ORIGIN com.
example 345600 IN SOA ns0.Example.org. dingdong.Example.com. (
4 3600 28800 2419200 ; comment
3600 )
3600 IN NS bigserv.example.net.
3600 IN A 192.0.2.11
www.example.com. A 192.0.2.12
$ORIGIN example.com.
www A 192.0.2.13
@ A 192.0.2.14
. TXT foo
@ MX 0 .
result:
- owner: example.com.
class: IN
ttl: 345600
data: !Soa
mname: ns0.Example.org.
rname: dingdong.Example.com.
serial: 4
refresh: 3600
retry: 28800
expire: 2419200
minimum: 3600
- owner: example.com.
class: IN
ttl: 3600
data: !Ns
nsdname: bigserv.example.net.
- owner: example.com.
class: IN
ttl: 3600
data: !A
addr: 192.0.2.11
- owner: www.example.com.
class: IN
ttl: 3600
data: !A
addr: 192.0.2.12
- owner: www.example.com.
class: IN
ttl: 3600
data: !A
addr: 192.0.2.13
- owner: example.com.
class: IN
ttl: 3600
data: !A
addr: 192.0.2.14
- owner: .
class: IN
ttl: 3600
data: !Txt
- foo
- owner: example.com.
class: IN
ttl: 3600
data: !Mx
preference: 0
exchange: .