diff --git a/dnsapi/dns_rcode0.sh b/dnsapi/dns_rcode0.sh index fc838e76..9ed20e68 100755 --- a/dnsapi/dns_rcode0.sh +++ b/dnsapi/dns_rcode0.sh @@ -40,10 +40,13 @@ dns_rcode0_add() { RCODE0_TTL="$DEFAULT_RCODE0_TTL" fi - #save the api addr and key to the account conf file. - _saveaccountconf_mutable RCODE0_URL "$RCODE0_URL" + #save the token to the account conf file. _saveaccountconf_mutable RCODE0_API_TOKEN "$RCODE0_API_TOKEN" + if [ "$RCODE0_URL" != "$DEFAULT_RCODE0_URL" ]; then + _saveaccountconf_mutable RCODE0_URL "$RCODE0_URL" + fi + if [ "$RCODE0_TTL" != "$DEFAULT_RCODE0_TTL" ]; then _saveaccountconf_mutable RCODE0_TTL "$RCODE0_TTL" fi