diff options
author | 2016-12-07 20:37:29 +0000 | |
---|---|---|
committer | 2016-12-09 11:59:14 +0000 | |
commit | 187e1dc5122b0a6ff9f6270ed5cb355e75c3c6ba (patch) | |
tree | 2434b579135a78f20abd3d8f42e15c8425f8f2aa /middleware/file/dnssec_test.go | |
parent | 56d3b47d119188a9461f1a78ae4cb24ab6809697 (diff) | |
download | coredns-187e1dc5122b0a6ff9f6270ed5cb355e75c3c6ba.tar.gz coredns-187e1dc5122b0a6ff9f6270ed5cb355e75c3c6ba.tar.zst coredns-187e1dc5122b0a6ff9f6270ed5cb355e75c3c6ba.zip |
middleware/file: include nsset in replies
This is required so that a resolver can upade the referral NSset
with the NSset at the child.
Update tests as well.
Diffstat (limited to 'middleware/file/dnssec_test.go')
-rw-r--r-- | middleware/file/dnssec_test.go | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/middleware/file/dnssec_test.go b/middleware/file/dnssec_test.go index 40e6429ea..ebce6fd78 100644 --- a/middleware/file/dnssec_test.go +++ b/middleware/file/dnssec_test.go @@ -19,6 +19,7 @@ var dnssecTestCases = []test.Case{ test.RRSIG("miek.nl. 1800 IN RRSIG SOA 8 2 1800 20160426031301 20160327031301 12051 miek.nl. FIrzy07acBbtyQczy1dc="), test.SOA("miek.nl. 1800 IN SOA linode.atoom.net. miek.miek.nl. 1282630057 14400 3600 604800 14400"), }, + Ns: auth, Extra: []dns.RR{test.OPT(4096, true)}, }, { @@ -27,6 +28,7 @@ var dnssecTestCases = []test.Case{ test.AAAA("miek.nl. 1800 IN AAAA 2a01:7e00::f03c:91ff:fef1:6735"), test.RRSIG("miek.nl. 1800 IN RRSIG AAAA 8 2 1800 20160426031301 20160327031301 12051 miek.nl. SsRT="), }, + Ns: auth, Extra: []dns.RR{test.OPT(4096, true)}, }, { @@ -50,6 +52,7 @@ var dnssecTestCases = []test.Case{ test.MX("miek.nl. 1800 IN MX 5 alt2.aspmx.l.google.com."), test.RRSIG("miek.nl. 1800 IN RRSIG MX 8 2 1800 20160426031301 20160327031301 12051 miek.nl. kLqG+iOr="), }, + Ns: auth, Extra: []dns.RR{test.OPT(4096, true)}, }, { @@ -60,7 +63,7 @@ var dnssecTestCases = []test.Case{ test.CNAME("www.miek.nl. 1800 IN CNAME a.miek.nl."), test.RRSIG("www.miek.nl. 1800 RRSIG CNAME 8 3 1800 20160426031301 20160327031301 12051 miek.nl. NVZmMJaypS+wDL2Lar4Zw1zF"), }, - + Ns: auth, Extra: []dns.RR{ test.OPT(4096, true), }, @@ -116,6 +119,14 @@ var dnssecTestCases = []test.Case{ }, } +var auth = []dns.RR{ + test.NS("miek.nl. 1800 IN NS ext.ns.whyscream.net."), + test.NS("miek.nl. 1800 IN NS linode.atoom.net."), + test.NS("miek.nl. 1800 IN NS ns-ext.nlnetlabs.nl."), + test.NS("miek.nl. 1800 IN NS omval.tednet.nl."), + test.RRSIG("miek.nl. 1800 IN RRSIG NS 8 2 1800 20160426031301 20160327031301 12051 miek.nl. ZLtsQhwazbqSpztFoR1Vxs="), +} + func TestLookupDNSSEC(t *testing.T) { zone, err := Parse(strings.NewReader(dbMiekNLSigned), testzone, "stdin") if err != nil { |