【求助】請問要如何架設提供Dynamic DNS 服務的Server



贊助商連結


頁 : [1] 2

dustybo
2003-03-17, 11:01 PM
請問要如何架設提供Dynamic DNS 服務的Server
就如同阿土站長架設的DDNS server

架設的方式跟標準的dns server有什麼不同嗎?
可以用win2000架嗎?

麻煩知道的大大告知如何架設!謝謝您!

因為學校教授要求架一個ddns server來測試

麻煩大家告知!謝謝!謝謝

贊助商連結


EricSS
2003-03-18, 01:15 AM
我現在是用adsldns...可以去看看
adsldns.org (http://www.adsldns.org/)
上面有教學,教你怎麼安裝

用到現在都蠻穩定的...:)
有問題可以PM我

dustybo
2003-03-18, 09:03 AM
最初由 EricSS 發表
我現在是用adsldns...可以去看看
adsldns.org (http://www.adsldns.org/)
上面有教學,教你怎麼安裝

用到現在都蠻穩定的...:)
有問題可以PM我

謝謝您的告知!但是我不是想要申請DDNS服務耶!
我是想要「架設」一個「提供DDNS服務」的Server耶!
不知EricSS大大知道如何架設嗎?
麻煩您告知!
謝謝您!...

conty
2003-03-18, 10:01 AM
我也有興趣知道...
誰可以告訴我們嗎??^_^~~

偶是用 Linux ....
是否要先架好DNS Server ...
但後續動作就不是很明白怎麼做了...

那個大大可以教一下嗎??^_^~~~

repsol
2003-03-18, 12:29 PM
Server 端的地方
named.conf
定義 zone 的地方,看一下 allow-update 的寫法

allow-update
Specifies which hosts are allowed to submit Dynamic DNS updates to the
server. The default is to deny updates from all hosts.


client 端的地方,用 nsupdate 這個 tool

EXAMPLES
The following example illustrates the interactive use of nsupdate to
change an IP address by deleting any existing A records for a domain name
and then inserting a new one. Since no prerequisites are specified, the
new record will be added even if there were no existing records to
delete. Note the trailing blank line, required to process the request.

$ nsupdate
> update delete test.example.com A
> update add test.example.com 3600 A 10.1.1.1
>

In this example, a CNAME alias is added to the database only if there are
no existing A or CNAME records for the domain name.

$ nsupdate
> prereq nxrrset www.example.com A
> prereq nxrrset www.example.com CNAME
> update add www.example.com 3600 CNAME test.example.com
>

In this example, the nsupdate will be signed with the key "mykey", which
is in the directory "/var/named/keys".

$ nsupdate -k /var/named/keys:mykey
> update add ftp.example.com 60 A 192.168.5.1
>

以上是用純 command 的方式去做。

如果是要透過網頁去動態 update dns 方式
利用 php + mysql 做出簡單的認證 login id&password 和完整的 FQDN 與 clinet 端的 ip
寫出一支簡單的 CGI 去 run nsupdate

以上如果有誤,請不吝指教
謝謝

ryanxyz
2003-03-18, 01:01 PM
最初由 repsol 發表
Server 端的地方
named.conf...............


有沒有詳細的範例 這樣子不太清楚

dustybo
2003-03-18, 02:12 PM
嗯!謝謝repsol大大的說明!
不過真的不太容易懂耶!
不知有沒有例子可以說明一下呢?
或是有其他的網站有教學呢?

可不可以用win2000架呢?

麻煩repsol大大告知!
謝謝您!....
謝謝!
謝謝!

repsol
2003-03-18, 03:08 PM
named.conf
定義 zone 的地方注意一下 allow-update 的地方

這樣子的寫法意思大概解釋一下
只有本機可以 update dns 的 record (test.com.tw 這個 zone)

zone "test.com.tw" {
type master;
file "dns.test";
allow-transfer { 127.0.0.1;

};
allow-update { 127.0.0.1;

};
};

這樣是基於安全的考量
所以當 client 端要 update dns的時候
只能透過網頁正常或是 tool (像是土哥所以提供的動態dns服務那種方法)
當 DDNS 主機得到 client 端所提供的 FQDN & clinet 端的 Ip之後
由主機來 action dns 本機去 update client 端所要更新 dns record 的動作

還有另外一種方法,是由 dns 主機提供 key 給各個 client 端
當 dns 主機接到 client 端有更新dns record 的需求時,會檢查 clinet 端有沒有當初由
這台 dns 所提供的 key,如果沒有 key ,就沒有辦法更新 dns record


win2000 的 dns 我沒用過,我也不知道可不可以架 DDNS

anyway ... 我不是大大

luckyboys
2003-03-18, 03:25 PM
你用什麼線路架站ㄚ@@

dustybo
2003-03-18, 09:49 PM
嗯!謝謝您!可以再請教你是用什麼作業系統架的呢?
freebse 還是 linux呢?
可以詳細的說一下嗎?要什麼版本和工具呢?
謝謝您!^^