mirror of
https://github.com/coredns/coredns.git
synced 2025-12-06 18:35:11 -05:00
plugin/dnssec: fix NSEC-records (#1138)
* add NSEC-records if entry exists but the requested type is missing * added test for dnssec fix
This commit is contained in:
@@ -49,7 +49,7 @@ func (d Dnssec) Sign(state request.Request, zone string, now time.Time) *dns.Msg
|
||||
|
||||
incep, expir := incepExpir(now)
|
||||
|
||||
if mt == response.NameError {
|
||||
if mt == response.NameError || mt == response.NoData {
|
||||
if req.Ns[0].Header().Rrtype != dns.TypeSOA || len(req.Ns) > 1 {
|
||||
return req
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user