Dnspod国际版 DDNS Updater

118 views
Skip to first unread message

ddhhz

unread,
Apr 27, 2011, 4:00:35 AM4/27/11
to ddn...@googlegroups.com
mail.png|,

非常感谢您的DNSPOD更新程序,我发现特别有用。但是现在DNSPOD.com变成了国际版,原来的用户都转到dnspod.cn了,我用国际版账户登录了数次都无法成功。

因为国际版的API还没有公开,官方的程序还没有出来,

希望您能把这个程序小小修改一下,然后更新到http://code.google.com/p/ddnspod/

That would be GREAT!!  希望能听到你的回复, 谢谢!

p.s. 我联系了DNSPOD国际部索取的API:

---------- Forwarded message ----------
From: Chuangbo Li <chua...@dnspod.com>
Date: Mon, Apr 25, 2011 at 22:33
Subject: Re: [DNSPod.COM] Developer Support from dd...@msn.com
To: dd...@msn.com
Cc: sup...@dnspod.com


hi,

I'm grad to hear that!

API now support:
1. group
  a. add domain to group
  b. remove domain from group
  c. get domains from group
2. domain
  a. delete domain
  b. disable domain
  c. enable domain
3. record
  a. add record
  b. remove record
  c. enable record
  d. disable record
  e. get records
4. domain search

No API about add domain yet.

The API is UNSTABLE, It should only be used for testing, any script written now may break in future releases. I hope you can give us feedback!

DNSPod has a simple Restful Web API, auth by cookie and response only json.

Here's some document you need.

API authentication:
by cookie, you can get it from your browser :)

Add & modify record:
PUT /api/domain/yourdomain.com
data:
sub_domain: Sub-domain, e.g. www, bbs
record_type: one of A, CNAME, URL, TXT, MX, NS, SRV, AAAA
value: record value, e.g. 127.0.0.1
ttl: ttl, default 600
mx: mx priority, optional, just for MX record
area: 0 for default
record_id: optional, when you want modify one record. (Deprecated, Will remove from PUT method soon)

response status code:
200 OK: return record with record_id in a array
403 Forbidden: Permission denied.
406 Not Acceptable: param missing or error
409 Conflict: record conflict with other record

Remove record:
DELETE /api/domain/yourdomain.com/${record_id}

response statue code:
200 OK: successful
403 Forbidden: Permission denied.

May help you.

Kindest regards,
chuangbo
DNSPod, Inc.

On 2011年4月26日星期二 at 上午10:26, DNSPod wrote:

Please send me documents involving updating DDNS. Thanks!
Reply all
Reply to author
Forward
0 new messages