Add nameerror proof

This commit is contained in:
Miek Gieben
2016-03-30 20:47:38 +01:00
parent 8feef98188
commit 3591e2a6aa
3 changed files with 70 additions and 2 deletions

View File

@@ -72,8 +72,7 @@ func (z *Zone) nameError(elem *tree.Elem, rr dns.RR, do bool) ([]dns.RR, []dns.R
ret := []dns.RR{z.SOA}
if do {
ret = append(ret, z.SIG...)
// Now we need two NSEC, one to deny the wildcard and one to deny the name.
// Needs closest encloser!!
ret = append(ret, z.nameErrorProof(rr)...)
}
return nil, ret, nil, NameError
}