RHCE--build DNS server

To set up the main DNS server, the requirements are as follows: the DNS server can resolve the IP addresses of www.qq.com and www.163.com.

Install service pack

[root@server ~]# yum install bind -y

insert image description here
Turn off firewall and seliunx
insert image description here

Modify the DNS server main configuration file

[root@server ~]# vim /etc/named.conf

insert image description here

Add zone library parsing file

[root@server ~]# vim /var/named/named.qq.com

insert image description here

[root@server ~]# vim /var/named/named.163.com

insert image description here
Modify the DNS client configuration file /etc/resolv.conf

<pre>[root@server ~]# vim /etc/resolv.conf
nameserver 192.168.2.11

test
insert image description here

Guess you like

Origin blog.csdn.net/weixin_55822200/article/details/127928652