diff --git a/controllers/dns.go b/controllers/dns.go index dd7b0f730..67085365f 100644 --- a/controllers/dns.go +++ b/controllers/dns.go @@ -165,7 +165,7 @@ func createDNS(w http.ResponseWriter, r *http.Request) { } // check if default domain is appended if not append if !strings.HasSuffix(entry.Name, servercfg.GetDefaultDomain()) { - entry.Name += servercfg.GetDefaultDomain() + entry.Name += "." + servercfg.GetDefaultDomain() } entry, err = logic.CreateDNS(entry) if err != nil {