initial commit

This commit is contained in:
Dessa Simpson 2025-11-30 19:25:34 -07:00
commit 772469d21b
27 changed files with 1121 additions and 0 deletions

View file

@ -0,0 +1 @@
!include bad_multiple_documents.yaml

View file

@ -0,0 +1 @@
"@": !include []

View file

@ -0,0 +1,3 @@
"@":
- ttl: 60
value: 192.0.2.1

View file

@ -0,0 +1,3 @@
"@":
- type: A
ttl: 60

1
testdata/bad_invalid_tag.yaml vendored Normal file
View file

@ -0,0 +1 @@
!foo bar

1
testdata/bad_invalid_type.yaml vendored Normal file
View file

@ -0,0 +1 @@
foobar

1
testdata/bad_invalid_yaml.yaml vendored Normal file
View file

@ -0,0 +1 @@
{

7
testdata/bad_missing_ns.yaml vendored Normal file
View file

@ -0,0 +1,7 @@
"@":
- type: SOA
value: ns1.example.com. admin.example.com. 1 1 1 1 1
- type: A
value: 192.0.2.100
- type: AAAA
value: 2001:db8::100

5
testdata/bad_missing_soa.yaml vendored Normal file
View file

@ -0,0 +1,5 @@
"@":
- type: A
value: 192.0.2.100
- type: AAAA
value: 2001:db8::100

8
testdata/bad_multiple_documents.yaml vendored Normal file
View file

@ -0,0 +1,8 @@
---
"@":
- type: A
- value: 1.2.3.4
---
"@":
- type: A
- value: 4.3.2.1

View file

@ -0,0 +1,4 @@
"@":
- type: A
value: 1.2.3.4
ttl: "not a number"

7
testdata/bad_recursion_1.yaml vendored Normal file
View file

@ -0,0 +1,7 @@
com:
example:
"@":
- type: A
ttl: 3600
value: 192.0.2.1
cloud: !include bad_recursion_2.yaml

7
testdata/bad_recursion_2.yaml vendored Normal file
View file

@ -0,0 +1,7 @@
foo:
bar:
"@":
- type: A
ttl: 3600
value: 192.0.2.1
cloud: !include bad_recursion_1.yaml

9
testdata/example.org.yaml vendored Normal file
View file

@ -0,0 +1,9 @@
"@":
- type: SOA
value: ns1.example.com. admin.example.com. 1 1 1 1 1
- type: A
value: 192.0.2.100
- type: AAAA
value: 2001:db8::100
- type: NS
value: ns1.example.com

4
testdata/nested/multilayer/zone.yaml vendored Normal file
View file

@ -0,0 +1,4 @@
"@":
- type: A
ttl: 3600
value: 192.0.2.1

2
testdata/nested/zone.yaml vendored Normal file
View file

@ -0,0 +1,2 @@
nested:
multilayer: !include multilayer/zone.yaml

64
testdata/zones.yaml vendored Normal file
View file

@ -0,0 +1,64 @@
# Comment
com: # Comment
example:
# Comment
"@":
- type: SOA
value: ns1.example.com. admin.example.com. 1 1 1 1 1
- type: A
value: 192.0.2.1
- type: AAAA
value: 2001:db8::1
- type: MX
ttl: 3600
value: 10 mail.example.com
- type: TXT
ttl: 300
value: "v=spf1 a mx include:mail.example.com ~all"
- type: CAA
ttl: 86400
value: 0 issue "letsencrypt.org"
- type: TXT
ttl: 3600
value: "foo=bar"
- type: NS
value: ns1.example.com
www:
- type: CNAME
ttl: 3600
value: example.com
mail:
- type: A
value: 192.0.2.2
status:
- type: A
ttl: 3600
value: 198.51.100.24
- type: A
ttl: 3600
value: 203.0.113.24
unused: []
_tcp:
_xmpp-server:
- type: SRV
ttl: 3600
value: 10 0 5269 example.com
internal:
"@":
- type: A
ttl: 3600
value: 10.0.0.1
ftp:
- type: A
ttl: 3600
value: 10.0.0.2
partner:
- type: NS
ttl: 3600
value: ns1.example.org
- type: NS
ttl: 3600
value: ns2.example.org
folders: !include nested/zone.yaml
org:
example: !include example.org.yaml