more changes

This commit is contained in:
Miek Gieben 2012-07-16 19:09:50 +02:00
parent 3e8b67a8ad
commit 2931a5f7b1
1 changed files with 8 additions and 6 deletions

14
zone.go
View File

@ -12,16 +12,18 @@ type Zone struct {
}
type ZoneData struct {
Name string // Domain name for this node
RR map[uint16][]RR // Map of the RR type to the RR
Signatures []*RR_RRSIG // DNSSEC signatures
Glue bool // True if the A and AAAA record are glue
Name string // Domain name for this node
RR map[uint16][]RR // Map of the RR type to the RR
// DNSSEC signatures for the RRsets
Signatures []*RR_RRSIG
// Almost always true, except for non-origin NS records (and accompanying glue)
Authoritatve bool
}
// New ...
func NewZone(name string) *Zone {
func NewZone(origin string) *Zone {
z := new(Zone)
z.Name = name
z.Origin = origin
z.Radix = radix.New()
return z
}