Browse Source

Make the SOA record look more standard-like

(most of the SOA fields are meaningless for geodns since we don't do AXFRs anyway)
Ask Bjørn Hansen 12 years ago
parent
commit
654e84e5c8
1 changed files with 3 additions and 2 deletions
  1. 3 2
      zones.go

+ 3 - 2
zones.go

@@ -398,8 +398,9 @@ func setupSOA(Zone *Zone) {
 	s := Zone.Origin + ". " + strconv.Itoa(ttl) + " IN SOA " +
 	s := Zone.Origin + ". " + strconv.Itoa(ttl) + " IN SOA " +
 		primaryNs + " " + Zone.Options.Contact + " " +
 		primaryNs + " " + Zone.Options.Contact + " " +
 		strconv.Itoa(Zone.Options.Serial) +
 		strconv.Itoa(Zone.Options.Serial) +
-		" 5400 5400 2419200 " +
-		strconv.Itoa(Zone.Options.Ttl)
+		// refresh, retry, expire, minimum are all
+		// meaningless with this implementation
+		" 5400 5400 1209600 3600"
 
 
 	// log.Println("SOA: ", s)
 	// log.Println("SOA: ", s)