mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user