From ed2b34d473c65650437ebc22637cb4856655757b Mon Sep 17 00:00:00 2001 From: Tom Limoncelli Date: Sun, 17 Dec 2017 11:59:02 -0500 Subject: [PATCH] Fix https://github.com/StackExchange/dnscontrol/issues/284 --- providers/bind/bindProvider.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/providers/bind/bindProvider.go b/providers/bind/bindProvider.go index b41bcbd0f..5ea433837 100644 --- a/providers/bind/bindProvider.go +++ b/providers/bind/bindProvider.go @@ -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",