if ! _dynu_rest POST "dns/record/add""{\"domain_name\":\"$_domain_name\",\"node_name\":\"$_node\",\"record_type\":\"TXT\",\"text_data\":\"$txtvalue\",\"state\":true,\"ttl\":90}";then
if ! _dynu_rest POST "dns/$dnsId/record""{\"domainId\":\"$dnsId\",\"nodeName\":\"$_node\",\"recordType\":\"TXT\",\"textData\":\"$txtvalue\",\"state\":true,\"ttl\":90}";then
return1
fi
if ! _contains "$response""text_data";then
if ! _contains "$response""200";then
_err "Could not add TXT record."
return1
fi
@ -132,11 +132,12 @@ _get_root() {
return1
fi
if ! _dynu_rest GET "dns/get/$h";then
if ! _dynu_rest GET "dns/getroot/$h";then
return1
fi
if _contains "$response""\"name\":\"$h\"" >/dev/null;then
if _contains "$response""\"domainName\":\"$h\"" >/dev/null;then