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/delegation_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/delegation_test.go')
-rw-r--r-- | middleware/file/delegation_test.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/middleware/file/delegation_test.go b/middleware/file/delegation_test.go index 63ca1d264..9b72e7033 100644 --- a/middleware/file/delegation_test.go +++ b/middleware/file/delegation_test.go @@ -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) } |