diff --git a/cmd/dd/dd.go b/cmd/dd/dd.go index e7106e0..2f7fd9a 100644 --- a/cmd/dd/dd.go +++ b/cmd/dd/dd.go @@ -60,8 +60,9 @@ func updateDnsRecord(domain string, ip string, hmac string, keyname string, secr update := fmt.Sprintf(`server %s key %s:%s %s + update delete %s update add %s %d a %s - send`, config.DnsServer, hmac, keyname, secret, domain, config.DnsTTL, ip) + send`, config.DnsServer, hmac, keyname, secret, domain, domain, config.DnsTTL, ip) _, err = io.WriteString(f, update) if err != nil {