cloudflare cdn通过cf api来查询dns返回记录的方法
获取地址:https://dash.cloudflare.com/profile点击Global API Key(X-Auth-Key)
然后发起
查看域名,右下角有个API区域 ID,下面的地址自己换一下,看到你自己的地址,邮箱换成你的cf登陆邮箱
curl -X GET "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/dns_records?page=1&per_page=100&match=all" \
-H "X-Auth-Email: user@gmail.com" \
-H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
-H "Content-Type: application/json"
导出DNS记录为txt列表
curl -X GET "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/dns_records/export" \
-H "X-Auth-Email: user@gmail.com" \
-H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
-H "Content-Type: application/json"
{:3018:}
页:
[1]