DNS service to resolve experiment

Provided that the server can access Ping www.baidu.com 

Construction of DNS cache server

[root @ localhost ~] # rpm -qa | grep -w bind // check if any bind. bind-libs-utils and the bind
[the root @ localhost ~] # yum the install the bind -Y // mounting the bind
[the root @ localhost ~] # Vim // modify the configuration file /etc/named.conf

[root@localhost ~]# systemctl restart named

[Root @ localhost ~] # setenforce 0 // close Linux security mechanisms

[Root @ localhost ~] # systemctl stop firewalld // turn off the firewall

[Root @ localhost ~] # iptables -F // Close another firewall

 

Guess you like

Origin www.cnblogs.com/maoyanqing/p/11368190.html