Linux下配置DNF过程
假设服务器ip为192.168.3.1
添加的域名和对应ip为www.beyond.com 192.168.3.1
注意:DNS的服务为named服务,相关安装包为bind相关包
1.安装服务
bind-9.3.6-4.P1.el5_4.2.i386.rpm
bind-chroot-9.3.6-4.P1.el5_4.2.i386.rpm
bind-devel-9.3.6-4.P1.el5_4.2.i386.rpm
caching-nameserver-9.3.6-4.P1.el5_4.2.i386.rpm
2.配置/etc/named.caching-nameserver.conf为,注意将localhost改为any
2.配置/etc/named.rfc1912.zones,添加下面内容
3.在/var/named/chroot/var/named下添加beyond1文件,内容为
4.在/var/named/chroot/var/named下添加beyond2文件,内容为
5.在/var/named/下创建beyobd1 beyond2的软连接,
ln -s /var/named/chroot/var/named/beyond1 /var/named/beyond1
ln -s /var/named/chroot/var/named/beyond2 /var/named/beyond2
6.启动dns服务,service named start
7.关闭防火墙service iptables stop
8.ping www.beyond.com测试是否能ping通