test: fix zone file (#1112)

* test: fix zone file

Add missing $TTL 3600 as the top.

Recent change in Go DNS made this mandatory - old behavior wasn't
standards compliant.

* and here
This commit is contained in:
Miek Gieben 2017-09-26 19:41:49 +01:00 committed by GitHub
parent daf8ef0da8
commit 44a0cb9557
2 changed files with 4 additions and 0 deletions

View file

@ -261,6 +261,7 @@ func TestLookupMultiWildcard(t *testing.T) {
} }
const exampleOrg = `; example.org test file const exampleOrg = `; example.org test file
$TTL 3600
example.org. IN SOA sns.dns.icann.org. noc.dns.icann.org. 2015082541 7200 3600 1209600 3600 example.org. IN SOA sns.dns.icann.org. noc.dns.icann.org. 2015082541 7200 3600 1209600 3600
example.org. IN NS b.iana-servers.net. example.org. IN NS b.iana-servers.net.
example.org. IN NS a.iana-servers.net. example.org. IN NS a.iana-servers.net.
@ -274,6 +275,7 @@ alias.example.org. IN TXT "Wildcard CNAME expansion"
` `
const apexWildcard = `; example.org test file with wildcard at apex const apexWildcard = `; example.org test file with wildcard at apex
$TTL 3600
example.org. IN SOA sns.dns.icann.org. noc.dns.icann.org. 2015082541 7200 3600 1209600 3600 example.org. IN SOA sns.dns.icann.org. noc.dns.icann.org. 2015082541 7200 3600 1209600 3600
example.org. IN NS b.iana-servers.net. example.org. IN NS b.iana-servers.net.
*.example.org. IN A 127.0.0.53 *.example.org. IN A 127.0.0.53
@ -281,6 +283,7 @@ foo.example.org. IN A 127.0.0.54
` `
const doubleWildcard = `; example.org test file with wildcard at apex const doubleWildcard = `; example.org test file with wildcard at apex
$TTL 3600
example.org. IN SOA sns.dns.icann.org. noc.dns.icann.org. 2015082541 7200 3600 1209600 3600 example.org. IN SOA sns.dns.icann.org. noc.dns.icann.org. 2015082541 7200 3600 1209600 3600
example.org. IN NS b.iana-servers.net. example.org. IN NS b.iana-servers.net.
*.example.org. IN A 127.0.0.53 *.example.org. IN A 127.0.0.53

View file

@ -1,6 +1,7 @@
package test package test
const exampleOrg = `; example.org test file const exampleOrg = `; example.org test file
$TTL 3600
example.org. IN SOA sns.dns.icann.org. noc.dns.icann.org. 2015082541 7200 3600 1209600 3600 example.org. IN SOA sns.dns.icann.org. noc.dns.icann.org. 2015082541 7200 3600 1209600 3600
example.org. IN NS b.iana-servers.net. example.org. IN NS b.iana-servers.net.
example.org. IN NS a.iana-servers.net. example.org. IN NS a.iana-servers.net.