aboutsummaryrefslogtreecommitdiff
path: root/plugin/file/dname.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/file/dname.go')
-rw-r--r--plugin/file/dname.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/file/dname.go b/plugin/file/dname.go
index f552bfdfd..58351a350 100644
--- a/plugin/file/dname.go
+++ b/plugin/file/dname.go
@@ -14,7 +14,7 @@ func substituteDNAME(qname, owner, target string) string {
labels := dns.SplitDomainName(qname)
labels = append(labels[0:len(labels)-dns.CountLabel(owner)], dns.SplitDomainName(target)...)
- return dnsutil.Join(labels)
+ return dnsutil.Join(labels...)
}
return ""