Set Authoritative Answer - DNSKEY (fix #210) (#212)

* Authoritative Answer - DNSKEY

* Improve Style
This commit is contained in:
elcore
2016-08-14 20:19:36 +02:00
committed by Miek Gieben
parent cdb7cb68ed
commit 6d3f9d2193
2 changed files with 5 additions and 0 deletions

View File

@@ -26,6 +26,7 @@ func (d Dnssec) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg)
for _, z := range d.zones {
if qname == z {
resp := d.getDNSKEY(state, z, do)
resp.Authoritative = true
state.SizeAndDo(resp)
w.WriteMsg(resp)
return dns.RcodeSuccess, nil