diff --git a/cli/main.go b/cli/main.go index 265c445c..3b9fee1c 100644 --- a/cli/main.go +++ b/cli/main.go @@ -192,7 +192,7 @@ func run() error { if publicDNSIp.Equal(dynamicDNSIp) { glog.Infof("IPs of dyndns and current ip match, nothing to do: current=%s, dyndns=%s", publicDNSIp, dynamicDNSIp) - // return nil + return nil } // Send notification as glue records can't be modified programatically for godaddy :/ defer notifyForIPChange(publicDNSIp, dynamicDNSIp) diff --git a/cli/update_viktorbarzin_me_technitium.go b/cli/update_viktorbarzin_me_technitium.go index 29adc22b..5131579e 100644 --- a/cli/update_viktorbarzin_me_technitium.go +++ b/cli/update_viktorbarzin_me_technitium.go @@ -57,8 +57,13 @@ func UpdatePublicIPViaTechnitiumAPI(newIp net.IP, username string, password stri if err != nil { return errors.Wrap(err, "failed to get technitium token") } - for _, ns := range []string{"ns1", "ns2"} { - nsRecordName := ns + ".viktorbarzin.me" + for _, ns := range []string{"ns1", "ns2", "@"} { + nsRecordName := "" + if ns == "@" { + nsRecordName = "viktorbarzin.me." + } else { + nsRecordName = ns + ".viktorbarzin.me" + } currIpStr, err := getRecordValue(token, nsRecordName, "A") if err != nil { return errors.Wrap(err, "failed to get A record for ns server")