xxxxxxxxxx
vim /etc/sysconfig/network-scripts/ifcfg-eth0
修改如下内容
xxxxxxxxxx
BOOTPROTO=static
IPADDR=192.168.xxx.1
NETMASK=255.255.255.0
重启网络
xxxxxxxxxx
service network restart
xxxxxxxxxx
cd /media/RHEL-6.6\ Server.i386/Packages
rpm -ivh bind-9.8.2-0.30.rc1.el6.i686.rpm
xxxxxxxxxx
vim /etc/named.conf
修改如下内容
xxxxxxxxxx
listen on port 53 { any; }
allow-query { any; }
xxxxxxxxxx
vim /etc/named.rfc1912.zones
编辑如下
)
修改zone配置文件正向解析
xxxxxxxxxx
cd /var/named
cp -p named.localhost xxx.com.zone
vim xxx.com.zone
编辑如下
修改zone配置文件反向解析
xxxxxxxxxx
cp -p named.localhost 192.168.xxx.zone
vim 192.168.xxx
编辑如下
xxxxxxxxxx
setenforce 0
xxxxxxxxxx
service iptables stop
或者使用setup
命令,选择Firewall configuration
下的Security Level
并设置为Disabled
,然后保存退出
xxxxxxxxxx
service network restart
service named restart
xxxxxxxxxx
nslookup