1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00
Tom Limoncelli
2017-12-17 11:59:02 -05:00
parent 86257b3863
commit ed2b34d473

View File

@@ -122,7 +122,7 @@ func rrToRecord(rr dns.RR, origin string, replaceSerial uint32) (models.RecordCo
old_serial = 1 old_serial = 1
} }
new_serial = v.Serial new_serial = v.Serial
if rc.Name == "@" && replaceSerial != 0 { if (dnsutil.TrimDomainName(rc.Name, origin+".") == "@") && replaceSerial != 0 {
new_serial = replaceSerial new_serial = replaceSerial
} }
rc.Target = fmt.Sprintf("%v %v %v %v %v %v %v", rc.Target = fmt.Sprintf("%v %v %v %v %v %v %v",