if _cf_rest POST "zones/$_domain_id/dns_records""{\"type\":\"TXT\",\"name\":\"$fulldomain\",\"content\":\"$txtvalue\",\"ttl\":120}";then
if _cf_rest POST "zones/$_domain_id/dns_records""{\"type\":\"TXT\",\"name\":\"$fulldomain\",\"content\":\"$txtvalue\",\"ttl\":120}";then
if printf$response | grep$fulldomain> /dev/null ;then
if printf$response | grep$fulldomain> /dev/null ;then
...
@@ -65,7 +65,7 @@ dns_cf_add(){
...
@@ -65,7 +65,7 @@ dns_cf_add(){
_debug "record_id"$record_id
_debug "record_id"$record_id
_cf_rest PUT "zones/$_domain_id/dns_records/$record_id""{\"id\":\"$record_id\",\"type\":\"TXT\",\"name\":\"$fulldomain\",\"content\":\"$txtvalue\",\"zone_id\":\"$_domain_id\",\"zone_name\":\"$_domain\"}"
_cf_rest PUT "zones/$_domain_id/dns_records/$record_id""{\"id\":\"$record_id\",\"type\":\"TXT\",\"name\":\"$fulldomain\",\"content\":\"$txtvalue\",\"zone_id\":\"$_domain_id\",\"zone_name\":\"$_domain\"}"