Linux运维工程师技术文档四(DNS配置)

HOST1 192.168.10.10

HOST1上安装DNS服务,能够解析局域网内所有主机。在windows7 上测试(nslookup)

yum -y install bind

cd /etc/

vim named.conf 域内

vim named.rfc1912.zones 域外

cd /var/named/

touch named.zzz  named.fff创建正向文件和反向文件

cat named.localhost > named.zzz

vim named.zzz

cat named.zzz > named.fff  管道导入

vim named.fff

systemctl restart named

systemctl status named

systemctl enable named 同时配置开机自动运行

环境测试

ipconfig /release 释放

ipconfig /renew

资源下载: