mirror of
https://github.com/coredns/coredns.git
synced 2025-12-09 11:55:13 -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:
@@ -62,6 +62,7 @@ var delegationTestCases = []test.Case{
|
||||
Answer: []dns.RR{
|
||||
test.SOA("miek.nl. 1800 IN SOA linode.atoom.net. miek.miek.nl. 1282630057 14400 3600 604800 14400"),
|
||||
},
|
||||
Ns: miekAuth,
|
||||
},
|
||||
{
|
||||
Qname: "miek.nl.", Qtype: dns.TypeAAAA,
|
||||
@@ -135,6 +136,13 @@ var secureDelegationTestCases = []test.Case{
|
||||
},
|
||||
}
|
||||
|
||||
var miekAuth = []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."),
|
||||
}
|
||||
|
||||
func TestLookupDelegation(t *testing.T) {
|
||||
testDelegation(t, dbMiekNLDelegation, testzone, delegationTestCases)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user