diff options
author | 2018-01-03 11:11:56 +0000 | |
---|---|---|
committer | 2018-01-03 11:11:56 +0000 | |
commit | 311af9314dc9cd3db3bfe6a4e212d5842151e9fb (patch) | |
tree | 79bc694919e28cdb966058024fcafcd4d06ef97d /plugin/dnssec/cache_test.go | |
parent | 7fe5b0bb1f34735859d611e170fa8709adac73ea (diff) | |
download | coredns-311af9314dc9cd3db3bfe6a4e212d5842151e9fb.tar.gz coredns-311af9314dc9cd3db3bfe6a4e212d5842151e9fb.tar.zst coredns-311af9314dc9cd3db3bfe6a4e212d5842151e9fb.zip |
plugin/dnssec: implement shotgun from CloudFlare (#1305)
* plugin/dnssec: implement shotgun from CloudFlare
Put a whole bunch of types in the NSEC bitmap and remove the one that's
being asked for.
Add more records for queries to the apex, SOA, DNSKEY, MX.
Diffstat (limited to 'plugin/dnssec/cache_test.go')
-rw-r--r-- | plugin/dnssec/cache_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/dnssec/cache_test.go b/plugin/dnssec/cache_test.go index b978df244..ccf588d8e 100644 --- a/plugin/dnssec/cache_test.go +++ b/plugin/dnssec/cache_test.go @@ -22,10 +22,10 @@ func TestCacheSet(t *testing.T) { c := cache.New(defaultCap) m := testMsg() - state := request.Request{Req: m} + state := request.Request{Req: m, Zone: "miek.nl."} k := hash(m.Answer) // calculate *before* we add the sig d := New([]string{"miek.nl."}, []*DNSKEY{dnskey}, nil, c) - d.Sign(state, "miek.nl.", time.Now().UTC()) + d.Sign(state, time.Now().UTC()) _, ok := d.get(k) if !ok { |