Browse Source

Fix bug making aliases not work from 0e0cd57579

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

+ 2 - 2
config.go

@@ -49,7 +49,6 @@ func configReadDir(dirName string, Zones Zones) {
 			zoneName := fileName[0:strings.LastIndex(fileName, ".")]
 			//log.Println("FILE:", i, file, zoneName)
 			runtime.GC()
-
 			config, err := readZoneFile(zoneName, path.Join(dirName, fileName))
 			if config == nil || err != nil {
 				log.Println("error reading file: ", err)
@@ -251,7 +250,8 @@ func setupZoneData(data map[string]interface{}, Zone *Zone) {
 
 				case dns.TypeMF:
 					rec := records[rType][i]
-					record.RR = &dns.RR_MF{Hdr: h, Mf: dns.Fqdn(rec.(string))}
+					// MF records (how we store aliases) are not FQDNs
+					record.RR = &dns.RR_MF{Hdr: h, Mf: rec.(string)}
 
 				case dns.TypeNS:
 					rec := records[rType][i]