From 2931a5f7b1da5b71a557877e81147284f30da9a2 Mon Sep 17 00:00:00 2001 From: Miek Gieben Date: Mon, 16 Jul 2012 19:09:50 +0200 Subject: [PATCH] more changes --- zone.go | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/zone.go b/zone.go index ed9d07d0..80371bcf 100644 --- a/zone.go +++ b/zone.go @@ -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 }