在中華電信設定的 domain
www.tnhc.org.tw 60.xxx.xxx.130
dns.tnhc.org.tw 60.xxx.xxx.130

DNS Server(Bind)設定檔路徑 /etc/bind/named.conf
在內容加入正反解:

zone "tnhc.org.tw" {
type master;
file "/etc/bind/named.tnhc";
};
zone "xxx.xxx.60.in-addr.arpa" {
type master;
file "/etc/bind/named.60.xxx.xxx.130";
};


/etc/bind/named.conf.options
先備份這個檔案,再把內容清空(小弟不是很了解這個檔案內容的設定,所以才這樣做)

options {
directory "/var/cache/bind";
forwarders {
168.95.1.1; 139.175.10.20; 203.133.1.6;
};
allow-query { any; };
allow-transfer { none; };
};


增加正解檔案:/etc/bind/named.tnhc
內容:

$TTL 600
@ IN SOA @ root.dns.tnhc.org.tw (
2006103002 ; Serial
28800 ; Refresh
14400 ; Retry
720000 ; Expire
86400 ) ; minimum
;
@ IN NS dns.tnhc.org.tw.
@ IN NS www.tnhc.org.tw.
@ IN MX 10 60.xxx.xxx.130
@ IN A 60.xxx.xxx.130
www IN A 60.xxx.xxx.130


增加反解檔案:/etc/bind/named.60.xxx.xxx.xxx
內容:

$TTL 600
@ IN SOA @ root.dns.tnhc.org.tw. (
1 ; Serial
28800 ; Refresh
14400 ; Retry
720000 ; Expire
86400 ) ; minimum
;
@ IN NS dns.tnhc.org.tw.
@ IN NS www.tnhc.org.tw.
130 IN PTR dns.tnhc.org.tw.
130 IN PTR www.tnhc.org.tw.


目前我還不知道,ubuntu 的 bind 記錄檔會寫到那裡
還有不少的疑問,DNS 這塊真的需要了解更深的知識,不然真的很
難發現問題,每過一座山,又會出現一座更高的山...

參考來源:
鳥哥的 DNS 伺服器設定
UbuntuServerTips Bind
好站: DNS查詢 除錯

20080316 補充資訊(使用 bind9):
apt-get install bind9 dnsutils
http://blog.havenlin.org/index.php/archives/541
Bookmark: HemiDemi MyShare Baidu Google Bookmarks Yahoo! My Web Del.icio.us Digg technorati furl Bookmark to:YouPush Bookmark to:你推我報

Posted by tern at 痞客邦 PIXNET Comments(2) Trackback(1) Hits(1936)


open trackbacks list Trackbacks (1)

  • [ubuntu] Bind9 – 架設 DNS Server

    Domain Name System (DNS) 也就是網域名稱系統 要詳細了解它請點上面的連結 或者是到 google 去收尋吧   接下來要介紹怎樣安裝 DNS Server 在 Ubuntu 的系統上了 不管是哪個版本 基本上不會差到哪去 我使用的是 Ubuntu 9.04   安裝之前先確定一些資料 DNS Server Name:jsdan.com         <=你購買的網域 IP Address:XXX.XXX.XXX.50       <=主機的 IP DNS Se...

Comments (2)

Post Comment
  • 真是太感謝您了..

    看過很多web都搞得懵懵懂懂的.. 謝謝您的分享囉:P
  • 謝謝你的回應鼓勵,小弟我也是常常在網路上看到別人的分享而得到幫助...^^

    ps. 你的 blog 寫的很不錯呦...^^

    ternreplied on 2008/09/05 22:41

  • 還好啦

    寫歸寫,是真的得花時間整理倒是真的。

Comment Permissions: Allow commenting

Leave Comment

*Name/Nickname
E-mail
Personal Website
Comment Title
*Comment
* Private Comment