1.安装BIND9
fang@bogon:~$ aptitude install bind9 bind9-host dnsutils.
2.配置IP vi /etc/network/interfaces(RHEL 在/etc/sysconfig/network-scripts/ifcfg-eth0)
3.配置DNS客户端vi /etc/resolv.conf
4.编辑named.conf.default-zones文件 fang@bogon:/etc/bind$ vi named.conf.default-zones
5.编辑test.zone
5.编辑1.168.192..zone
6.重启DNS sudo /etc/init.d/bind9 restart
7.测试
# netstat –tulpn|grep 53
nslookup
DNS日志文件:/var/log/syslog
转载于:https://blog.51cto.com/angf2/380751