aboutsummaryrefslogtreecommitdiff
path: root/plugin/dnssec/responsewriter.go
diff options
context:
space:
mode:
authorGravatar Miek Gieben <miek@miek.nl> 2018-01-03 11:11:56 +0000
committerGravatar GitHub <noreply@github.com> 2018-01-03 11:11:56 +0000
commit311af9314dc9cd3db3bfe6a4e212d5842151e9fb (patch)
tree79bc694919e28cdb966058024fcafcd4d06ef97d /plugin/dnssec/responsewriter.go
parent7fe5b0bb1f34735859d611e170fa8709adac73ea (diff)
downloadcoredns-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/responsewriter.go')
-rw-r--r--plugin/dnssec/responsewriter.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugin/dnssec/responsewriter.go b/plugin/dnssec/responsewriter.go
index 5a38abac7..c50850aba 100644
--- a/plugin/dnssec/responsewriter.go
+++ b/plugin/dnssec/responsewriter.go
@@ -26,9 +26,10 @@ func (d *ResponseWriter) WriteMsg(res *dns.Msg) error {
if zone == "" {
return d.ResponseWriter.WriteMsg(res)
}
+ state.Zone = zone
if state.Do() {
- res = d.d.Sign(state, zone, time.Now().UTC())
+ res = d.d.Sign(state, time.Now().UTC())
cacheSize.WithLabelValues("signature").Set(float64(d.d.cache.Len()))
}