Get positive dnssec stuff going
This commit is contained in:
parent
4a313d67ff
commit
48f7d55f27
11 changed files with 126 additions and 65 deletions
|
@ -78,6 +78,11 @@ func Parse(f io.Reader, origin, fileName string) (*Zone, error) {
|
|||
z.SOA = x.RR.(*dns.SOA)
|
||||
continue
|
||||
}
|
||||
if x.RR.Header().Rrtype == dns.TypeRRSIG {
|
||||
if x, ok := x.RR.(*dns.RRSIG); ok && x.TypeCovered == dns.TypeSOA {
|
||||
z.SIG = append(z.SIG, x)
|
||||
}
|
||||
}
|
||||
z.Insert(x.RR)
|
||||
}
|
||||
return z, nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue