Example:
curl -X POST https://api.dnspod.com/Record.Create -d 'user_token=730060,e1a8a$f14dc5dcbafd83680b3d2a553c4d553d&format=json&domain_id=2317346&sub_domain=@&record_type=A&record_line=default&value=1.1.1.1'
Response Example:
JSON:
{ "status": { "code":"1", "message":"Action completed successful", "created_at":"2012-11-23 22:17:47" }, "record": { "id":"16894439", "name":"@", "status":"enable" } }
Example:
curl -X POST https://api.dnspod.com/Record.List -d 'user_token=730060,e1a8a$f14dc5dcbafd83680b3d2a553c4d553d&format=json&domain_id=2317346'
Response Example:
JSON:
{ "status": { "code": "1", "message": "Action completed successful", "created_at": "2014-06-05 09:58:40" }, "domain": { "id": "9", "name": "dnspod.com", "punycode": "dnspod.com", "grade": "DP_Free", "owner": "yizerowu@dnspod.com" }, "info": { "sub_domains": "5", "record_total": "5" }, "records": [ { "id": "50", "name": "@", "line": "Default", "type": "A", "ttl": "600", "value": "96.126.115.73", "mx": "0", "enabled": "1", "status": "enabled", "monitor_status": "", "remark": "", "updated_on": "2014-06-05 09:47:59" }, { "id": "49", "name": "@", "line": "Default", "type": "MX", "ttl": "600", "value": "cloudmx.qq.com.", "mx": "5", "enabled": "1", "status": "enabled", "monitor_status": "", "remark": "", "updated_on": "2014-06-05 09:47:59" }, { "id": "46", "name": "@", "line": "Default", "type": "NS", "ttl": "600", "value": "a.dnspod.com.", "mx": "0", "enabled": "1", "status": "enabled", "monitor_status": "", "remark": "", "updated_on": "2014-06-05 09:47:40", "hold": "hold" }, { "id": "47", "name": "@", "line": "Default", "type": "NS", "ttl": "600", "value": "b.dnspod.com.", "mx": "0", "enabled": "1", "status": "enabled", "monitor_status": "", "remark": "", "updated_on": "2014-06-05 09:47:40", "hold": "hold" }, { "id": "48", "name": "@", "line": "Default", "type": "NS", "ttl": "600", "value": "c.dnspod.com.", "mx": "0", "enabled": "1", "status": "enabled", "monitor_status": "", "remark": "", "updated_on": "2014-06-05 09:47:40", "hold": "hold" } ] }
Example:
curl -X POST https://api.dnspod.com/Record.Modify -d 'user_token=730060,e1a8a$f14dc5dcbafd83680b3d2a553c4d553d&format=json&domain_id=2317346&record_id=16894439&sub_domain=www&value=3.2.2.2&record_type=A&record_line=default'
Response Example:
JSON:
{ "status": { "code":"1", "message":"Action completed successful", "created_at":"2012-11-24 16:53:23" }, "record": { "id":16894439, "name":"@", "value":"3.2.2.2","status":"enable" } }
Example:
curl -X POST https://api.dnspod.com/Record.Remove -d 'user_token=730060,e1a8a$f14dc5dcbafd83680b3d2a553c4d553d&format=json&domain_id=2317346&record_id=16894439'
Response Example:
JSON:
{ "status": { "code":"1", "message":"Action completed successful", "created_at":"2012-11-24 16:58:07" } }
Example:
curl -X POST https://api.dnspod.com/Record.Ddns -d 'user_token=730060,e1a8a$f14dc5dcbafd83680b3d2a553c4d553d&format=json&domain_id=2317346&record_id=16894439&record_line=default&sub_domain=www'
Response Example:
JSON:
{ "status": { "code":"1", "message":"Action completed successful", "created_at":"2012-11-24 17:23:58" }, "record": { "id":16909160, "name":"@", "value":"111.111.111.111" } }
Example:
curl -X POST https://api.dnspod.com/Record.Remark -d 'user_token=730060,e1a8a$f14dc5dcbafd83680b3d2a553c4d553d&format=json&domain_id=2317346&record_id=16894439&remark=test'
Response Example:
JSON:
{ "status": { "code": "1", "message": "Action completed successful", "created_at": "2012-11-24 17:32:23" } }
Example:
curl -X POST https://api.dnspod.com/Record.Info -d 'user_token=730060,e1a8a$f14dc5dcbafd83680b3d2a553c4d553d&format=json&domain_id=2317346&record_id=16894439'
Response Example:
JSON:
{ "status": { "code": "1", "message": "Action completed successful", "created_at": "2014-06-05 10:07:05" }, "domain": { "id": "9", "domain": "dnspod.com", "domain_grade": "DP_Free" }, "record": { "id": "50", "sub_domain": "@", "record_type": "A", "record_line": "Default", "value": "96.126.115.73", "mx": "0", "ttl": "600", "enabled": "1", "monitor_status": "", "remark": "", "updated_on": "2014-06-05 09:47:59", "domain_id": "9" } }
Example:
curl -X POST https://api.dnspod.com/Record.Status -d 'user_token=730060,e1a8a$f14dc5dcbafd83680b3d2a553c4d553d&format=json&domain_id=2317346&record_id=16894439&status=disable'
Response Example:
JSON:
{ "status": { "code": "1", "message": "Action completed successful", "created_at": "2012-11-24 20:07:29" }, "record": { "id": 16909160, "name": "@", "status": "disable" } }