DNS緩存服務器
DNS緩存服務器
DNS服務器的配置
- yum install bind -y
- vim /etc/named.conf
- 11 // listen-on port 53 { 127.0.0.1; };
- 17 // allow-query { localhost; };
- 18 forwarders { 8.8.8.8; };
- 21 dnssec-enable no;
22 dnssec-validation no;
- service named start
DNS 客戶端的配置
- yum install bind-utils -y
- vim /etc/sysconfig/network-scripts/ifcfg-eth0
- DNS1=192.168.209.10 //指向dns服務器ip
- ifdown eth0 && ifup eth0
歡迎關注本站公眾號,獲取更多信息