CloudFlare使用api修改域名解析NS为第三方NS
官方文档 https://developers.cloudflare.com/api/operations/registrar-domains-update-domain
修改方法
curl --request PUT \
--url https://api.cloudflare.com/client/v4/accounts/账户ID/registrar/domains/2dan.cc\
--header 'Content-Type: application/json' \
--header 'X-Auth-Email: [email protected]' \
--header 'X-Auth-Key: xa3a22e7388ca555827e78e1e8hca7f22b280' \
--data '{
"auto_renew": true,
"locked": false,
"name_servers": [
"mussel.dnspod.net",
"crystal.dnspod.net"
],
"privacy": true
}'