VM镜像rhel.5.3-server
一:
dns服务器,需要4个rpm包bind-9.3.4-10.P1.el5、bind-chroot-9.3.4-10.P1.el5、bind-utils-9.3.4-10.P1.el5(提供nslookup)、system-config-bind-4.0.0.3-4.el5、caching-nameserver-9.3.4-10.P1.el5.noarch.rpm
1、查看光盘:ls -l /dev | grep cdrom cdrom->scd0
2、挂载cdrom到mnt:mount /dev/cdrom /mnt
3、进入rpm包我的发现在Server:cd /mnt/Server
4、查看bind相关的安装包:ls | grep bind
安装以上4个包;
rpm -ivh bind-9.3.4-10.P1.el5 (若依赖问题安装不了的,rpm -ivh bind-9.3.4-10.P1.el5--nodeps --force)
rpm -ivh bind-chroot-9.3.4-10.P1.el5
ls | grep nameserver #找到caching-nameserver-9.3.4-10.P1.el5.noarch.rpm包
rpm -ivh caching-nameserver-9.3.4-10.P1.el5.noarch.rpm
二:
配置dns文件(/etc/named.conf)
1、进入etc虚拟目录:cd /var/named/chroot/etc
从/usr/share/system-config-bind/profiles/default/拷贝named.conf到/var/named/chroot/etc
cp /usr