{ "apikey":"API-KEY", "domain":"example.com", "update":{ "type":"CNAME", "name":"mail",//or "name":"mail.example.com" "content":"mail.yahoo.com",//point to mail.yahoo.com instead "ttl":480//ttl value is in minutes 480 = 6 hours } }
2.3、新增IPV4
1 2 3 4 5 6 7 8 9 10
{ "apikey":"API-KEY", "domain":"example.com", "add":{ "type":"A", "name":"host1",//same as host1.example.com "content":"1.1.2.2",//IP of the host "ttl":480 } }
2.4、新增CNAME
1 2 3 4 5 6 7 8 9 10
{ "apikey":"API-KEY", "domain":"example.com", "add":{ "type":"CNAME", "name":"mail",//this actually setup mail.example.com points to mail.yahoo.com "content":"mail.yahoo.com",//content is the canonical host name "ttl":480//ttl value is in minutes 480 = 6 hours } }
2.5、删除CNAME
1 2 3 4 5 6 7 8
{ "apikey":"API-KEY", "domain":"example.com", "delete":{ "type":"CNAME", "name":"mail"//instead you can put mail.example.com } }