事件: http://mp.weixin.qq.com/s/yGHn2PFN1XdvYz8xVsWmww
需要 Node 8。
nvm use 8 && yarn
- 导出 CloudXNS 记录成 XML 格式。
- 去 CloudFlare 添加域名,确保 DNS 记录为空,如果不为空就删光。
export CLOUDFLARE_EMAIL=example@example.com
export CLOUDFLARE_KEY=MyGoalIsTheSeaOfStars
node index.js <域名> <XML文件名>
,如node index.js orz.com xxx.xml
。
可惜,当然不支持私货啦,比如 LINK, AX, CNAMEX, 301跳转, 302跳转, 隐式跳转。