全國最多中醫師線上諮詢網站-台灣中醫網
發文 回覆 瀏覽次數:1676
推到 Plurk!
推到 Facebook!

更新動態域名?

答題得分者是:liu_yingx
takdick
一般會員


發表:50
回覆:63
積分:22
註冊:2002-08-05

發送簡訊給我
#1 引用回覆 回覆 發表時間:2006-07-13 19:35:12 IP:219.79.xxx.xxx 訂閱

我在一提供動態域名轉向服務的網站(www.3322.org)申請了一帳戶,現在我想把登入該網站然後更新IP的動作寫入到我的程序裡,不知可否做到?謝謝.

我知道該網站已有一客戶端軟件可做到以上動作,但我想自己寫,以下鏈接是相關協議,但我不知道怎麼用?

http://www.3322.org/dyndnspage/protocol.html

Jasonwong
版主


發表:49
回覆:931
積分:581
註冊:2006-10-27

發送簡訊給我
#2 引用回覆 回覆 發表時間:2006-07-13 23:27:12 IP:61.57.xxx.xxx 未訂閱
你應該是試著去嚐試如何寫, 等有問題再上來詢問, 而不是叫別人寫好給你
------
聰明的人,喜歡猜心;雖然每次都猜對了,卻失去了自己的心
傻氣的人,喜歡給心;雖然每次都被笑了,卻得到了別人的心
takdick
一般會員


發表:50
回覆:63
積分:22
註冊:2002-08-05

發送簡訊給我
#3 引用回覆 回覆 發表時間:2006-07-14 17:30:18 IP:203.218.xxx.xxx 訂閱
我只是個初學者,對上述問題根本毫無頭緒,網上又找不到相關資料,如何下手去寫?
liu_yingx
一般會員


發表:0
回覆:2
積分:5
註冊:2004-10-13

發送簡訊給我
#4 引用回覆 回覆 發表時間:2006-07-14 18:29:45 IP:222.71.xxx.xxx 未訂閱

复杂的方式 tcp/ip http 按照 3322的格式发送

简单些的 idhttp 3322提供的 url (按其格式)

超简单的 webBrowser 访问 3322提供的 url (按其格式)

takdick
一般會員


發表:50
回覆:63
積分:22
註冊:2002-08-05

發送簡訊給我
#5 引用回覆 回覆 發表時間:2006-07-19 19:18:43 IP:219.79.xxx.xxx 訂閱

我找了些使用idhttp的資料,反覆測試後終於可以更新域名了(在使用idhttp的時候出現不明錯誤,所以改用ICS的httpcli控件),但還有個小問題:如何得到該網站返回的訊息?在登錄網站後可得到'200'的返回碼,但不一定代表域名更新成功,我要得到的是'Update Complete'或'good Update good and successful, IP updated'這樣的訊息.請再指教,謝謝.

以下是網站相關的返回碼解釋:
http://www.3322.org/dyndnspage/codes.html

Pre-Update Errors
badauth Bad authorization (username or password)
badsys The system parameter given was not valid.
badagent The useragent your client sent has been blocked at the access
level. Support of this return code is optional.

Update Complete
good Update good and successful, IP updated
nochg No changes, update considered abusive

good或noschg后面会跟着所更新的IP地址

Input Error Conditions
notfqdn A Fully-Qualified Domain Name was not provided
nohost The hostname specified does not exist
nourl WebHop时,没有设置URL
!donator The offline setting was set, when the user is not a donator,
this is only returned once
!yours The hostname specified exists, but not under the username
currently being used
!active The hostname specified is in a Custom DNS domain which has not
yet been activated
abuse The hostname specified is blocked for abuse; contact support to
be unblocked

Server Error Conditions
numhost Too many or too few hosts found
dnserr DNS error encountered

Wait Conditions
wxxh Wait "xx" hours
wxxm Wait "xx" minutes
wxxs Wait "xx" seconds

Emergency Conditions
911 Shutdown until notified otherwise via status.shtm



===================引 用 文 章===================

复杂的方式 tcp/ip http 按照 3322的格式发送

简单些的 idhttp 3322提供的 url (按其格式)

超简单的 webBrowser 访问 3322提供的 url (按其格式)

系統時間:2024-05-13 18:13:55
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!