more changes
This commit is contained in:
parent
3e8b67a8ad
commit
2931a5f7b1
10
zone.go
10
zone.go
|
@ -14,14 +14,16 @@ type Zone struct {
|
||||||
type ZoneData struct {
|
type ZoneData struct {
|
||||||
Name string // Domain name for this node
|
Name string // Domain name for this node
|
||||||
RR map[uint16][]RR // Map of the RR type to the RR
|
RR map[uint16][]RR // Map of the RR type to the RR
|
||||||
Signatures []*RR_RRSIG // DNSSEC signatures
|
// DNSSEC signatures for the RRsets
|
||||||
Glue bool // True if the A and AAAA record are glue
|
Signatures []*RR_RRSIG
|
||||||
|
// Almost always true, except for non-origin NS records (and accompanying glue)
|
||||||
|
Authoritatve bool
|
||||||
}
|
}
|
||||||
|
|
||||||
// New ...
|
// New ...
|
||||||
func NewZone(name string) *Zone {
|
func NewZone(origin string) *Zone {
|
||||||
z := new(Zone)
|
z := new(Zone)
|
||||||
z.Name = name
|
z.Origin = origin
|
||||||
z.Radix = radix.New()
|
z.Radix = radix.New()
|
||||||
return z
|
return z
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue