Better logging for NSEC3

When dropping NSEC3 records provide better logging and add test
for NSEC3 records.
This commit is contained in:
Miek Gieben
2016-09-03 09:37:36 +01:00
parent 9caa607173
commit 99170ac62e
2 changed files with 15 additions and 5 deletions

View File

@@ -74,7 +74,7 @@ func (z *Zone) Insert(r dns.RR) error {
z.Apex.SOA = r.(*dns.SOA)
return nil
case dns.TypeNSEC3, dns.TypeNSEC3PARAM:
return fmt.Errorf("NSEC3 zone is not supported, dropping")
return fmt.Errorf("NSEC3 zone is not supported, dropping RR: %s for zone: %s", r.Header().Name, z.origin)
case dns.TypeRRSIG:
x := r.(*dns.RRSIG)
switch x.TypeCovered {