Browse Source

Default ttl and max_hosts options

Ask Bjørn Hansen 13 years ago
parent
commit
cafabda1bd
1 changed files with 2 additions and 0 deletions
  1. 2 0
      config.go

+ 2 - 0
config.go

@@ -97,6 +97,8 @@ func readZoneFile(zoneName, fileName string) (*Zone, error) {
 	Zone.Labels = make(labels)
 	Zone.Labels = make(labels)
 	Zone.Origin = zoneName
 	Zone.Origin = zoneName
 	Zone.LenLabels = dns.LenLabels(Zone.Origin)
 	Zone.LenLabels = dns.LenLabels(Zone.Origin)
+	Zone.Options.Ttl = 120
+	Zone.Options.MaxHosts = 2
 
 
 	if err == nil {
 	if err == nil {
 		var objmap map[string]interface{}
 		var objmap map[string]interface{}