mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-01-12 02:17:43 +08:00
This commit is contained in:
parent
86257b3863
commit
ed2b34d473
1 changed files with 1 additions and 1 deletions
|
@ -122,7 +122,7 @@ func rrToRecord(rr dns.RR, origin string, replaceSerial uint32) (models.RecordCo
|
|||
old_serial = 1
|
||||
}
|
||||
new_serial = v.Serial
|
||||
if rc.Name == "@" && replaceSerial != 0 {
|
||||
if (dnsutil.TrimDomainName(rc.Name, origin+".") == "@") && replaceSerial != 0 {
|
||||
new_serial = replaceSerial
|
||||
}
|
||||
rc.Target = fmt.Sprintf("%v %v %v %v %v %v %v",
|
||||
|
|
Loading…
Reference in a new issue