|
|
#1 |
|
初心者
註冊日期: Jan 2008
文章: 144
積分: 14424
|
CentOS 5的DNS設定和CentOS 4.x版不同
變成Fedora Core 6的方式 程式碼:
yum install caching-nameserver 是否取消chroot功能 程式碼:
cd /etc grep -v '//' named.rfc1912.zones > named.conf chown root.named named.conf chmod 640 named.conf 最上面加入 程式碼:
options {
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
};
程式碼:
zone "odyssey.idv.tw" IN {
type master;
file "named.odyssey.idv.tw";
};
程式碼:
$TTL 86400
odyssey.idv.tw. IN SOA ns1.odyssey.idv.tw. sysop.odyssey.idv.tw. (
2006042901; Serial
10800 ; Refresh
3600 ; Retry
604800; Expire
86400 );
odyssey.idv.tw. IN NS ns1.odyssey.idv.tw.
odyssey.idv.tw. IN NS ns2.odyssey.idv.tw.
ns1.odyssey.idv.tw. IN A 192.168.x.x
ns2.odyssey.idv.tw. IN A 192.168.x.x
odyssey.idv.tw. IN MX 0 odyssey.idv.tw.
odyssey.idv.tw. IN A 192.168.x.x
www IN CNAME odyssey.idv.tw.
|
|
|
|
![]() |
| 目前檢視此主題的會員: 1 (0 位會員和 1 位遊客) | |
| 主題工具 | |
| 顯示模式 | |
|
|
相似的主題
|
||||
| 主題 | 主題作者 | 討論區 | 回覆 | 最後發表 |
| [CentOS] CentOS 5.0 準備起飛 | random67951 | CentOS / RedHat Linux | 0 | 04-28-2008 13:38 |
| [CentOS] 再次談談 CentOS | random67951 | CentOS / RedHat Linux | 0 | 04-28-2008 13:37 |
| [CentOS] 哈,計畫趕不上變化(Centos+MythTV) | random67951 | CentOS / RedHat Linux | 0 | 04-28-2008 13:29 |
| [CentOS] Centos 3.4 and 4.0 Release | random67951 | CentOS / RedHat Linux | 0 | 04-28-2008 13:28 |
| [CentOS] Web Server Optimization Guide for CentOS - RedHat | acid1031 | CentOS / RedHat Linux | 0 | 03-07-2008 12:13 |