台灣最大程式設計社群網站
線上人數
1180
 
會員總數:246038
討論主題:189625
歡迎您免費加入會員
討論區列表 >> Linux / Unix >> CentOS5.5 DNS設定
[]  
[我要回覆]
1
回應主題 加入我的關注話題 檢舉此篇討論 將提問者加入個人黑名單
CentOS5.5 DNS設定
價值 : 40 QP  點閱數:2232 回應數:1
樓主

阿德Sky
門外漢
0 6
126 10
發送站內信

捐贈 VP 給 阿德Sky
事情是這樣的,小弟有向twbbs.org申請一組次級網域,並設定A紀錄給我的固定IP,在另外給一組NS紀錄指定到我的次網域
系統是用CentOS5.5 ,使用中華固定IP,為了學習,也裝了Webmin來輔助,DNS搭的是BIND9
目前假設申請的次網域是aaa.twbbs.org,想用DNS去增加額外網域,例如ftp.aaa.twbbs.org 等等...
ftp.aaa.twbbs.org這樣的網域搭的是內網IP 像是192.168.1.100
由於小弟是新手,不知道該如何去設定正解與反解問題 附上設定的內容

/etc/named.conf

// named.rfc1912.zones:
//
// Provided by Red Hat caching-nameserver package
//
// ISC BIND named zone configuration for zones recommended by
// RFC 1912 section 4.1 : localhost TLDs and address zones
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
zone "." IN {
type hint;
file "named.ca";
};

zone "localdomain" IN {
type master;
file "localdomain.zone";
allow-update { none; };
};

zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};

zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};

zone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" IN {
type master;
file "named.ip6.local";
allow-update { none; };
};

zone "255.in-addr.arpa" IN {
type master;
file "named.broadcast";
allow-update { none; };
};

zone "aaa.twbbs.org" IN {
type master;
file "aaa.zone";
allow-update { none; };
};

zone "0.in-addr.arpa" IN {
type master;
file "named.zero";
allow-update { none; };
};
/etc/named.rfc1912.zone

// named.rfc1912.zones:
//
// Provided by Red Hat caching-nameserver package
//
// ISC BIND named zone configuration for zones recommended by
// RFC 1912 section 4.1 : localhost TLDs and address zones
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
zone "." IN {
type hint;
file "named.ca";
};

zone "localdomain" IN {
type master;
file "localdomain.zone";
allow-update { none; };
};

zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};

zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};

zone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" IN {
type master;
file "named.ip6.local";
allow-update { none; };
};

zone "255.in-addr.arpa" IN {
type master;
file "named.broadcast";
allow-update { none; };
};

zone "aaa.twbbs.org" IN {
type master;
file "aaa.zone";
allow-update { none; };
};

zone "0.in-addr.arpa" IN {
type master;
file "named.zero";
allow-update { none; };
};

疑問
1.每個zone該如何去設定?
2.named.conf與named.rfc1912.zone是一樣的東西嗎?
3.還要在設定網址對應區網IP的解析嗎?

雖然問題比較雜,希望懂得人能夠幫助小弟一個學習的機會~~~感謝!!

本篇文章發表於2011-02-28 22:12
1樓
回應

towns
捐贈 VP 給 towns 檢舉此回應
啊呀!還沒人回答就結束啦!
本篇文章回覆於2011-03-02 18:22
== 簽名檔 ==
--未登入的會員無法查看對方簽名檔--
   
1

回覆
如要回應,請先登入.