mirror of
https://github.com/coredns/coredns.git
synced 2025-12-08 19:35:10 -05:00
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.
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user