服務1RHEL6.5下DNS服務器的安裝
環境介紹:
node1.cn:slave
node2.cn:masters
1、軟件包安裝
[[email protected] ~]# yum -y install bind [[email protected] ~]# rpm -ivh /mnt/Packages/bind-9.8.2-0.17.rc1.el6_4.6.x86_64.rpm [[email protected] ~]# rpm -ivh /mnt/Packages/bind-chroot-9.8.2-0.17.rc1.el6_4.6.x86_64.rp
2、服務啟動
[[email protected]
DNS服務啟動之後的文件掛載信息
[[email protected] ~]# mount /dev/sda2 on / type ext4 (rw) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) devpts on /dev/pts type devpts (rw,gid=5,mode=620) tmpfs on /dev/shm type tmpfs (rw) /dev/sda1 on /boot type ext4 (rw) /dev/sr0 on /mnt type iso9660 (ro) none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
3、本地網卡eth0配置信息
DEVICE=eth0 TYPE=Ethernet ONBOOT=yes NM_CONTROLLED=yes BOOTPROTO=none HWADDR=00:0c:29:47:1b:4A IPADDR=192.168.31.102 PREFIX=24 GATEWAY=192.168.31.1 DNS1=192.168.31.102 DEFROUTE=yes IPV4_FAILURE_FATAL=yes IPV6INIT=no NAME="System eth0"
4、服務相關配置文件
[[email protected] ~]# ls /etc/named.conf //主要配置文件 [[email protected]