天高任鸟飞,海阔凭鱼跃
分类: LINUX
2010-07-14 12:40:43
实现方法:
1.首先查看cache-name-server软件包又没有安装
#rpm –qa | grep caching-nameserver
#rpm –ivh caching-nameserver-
2.建立缓存域名服务器文件named.conf
#vi /var/named/chroot/etc/named.conf
options {
listen-on port 53 { 192.168.100.1; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
query-source port 53;
allow-query { 192.168.100.0/24; };
recursion yes;
};
zone "." IN {
type hint;
file "named.ca";
};
3.确认根域地址数据库文件named.ca
#ls /var/named/chroot/var/named/named.ca
4.启动named服务
#service named start
#netstat –anpl | grep :53
tcp 0 0 192.168.100.1:53
udp 0 0
udp 0 0 192.168.100.1:53
udp 0 0
udp 0 0 :::5353 :::* 3749/avahi-daemon:
5.验证缓存域名服务器