Skip to content

Commit

Permalink
Fix bug making aliases not work from 0e0cd57
Browse files Browse the repository at this point in the history
  • Loading branch information
abh committed Sep 1, 2012
1 parent 502d71a commit af7ecc1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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]
Expand Down

0 comments on commit af7ecc1

Please sign in to comment.