练习要求:
3、搭建一个dns服务器,客户端可以使用该服务器解析域名www.haha.com为web服务器的
4、将客户端的ip地址中的域名解析服务器地址修改为第3题的dnt服务器的p,使用ping命令ping www.haha.com看能否ping通,用curl命令访问curl www.haha.com看能否看到web页面内容 258/1024
完成过程:
练习一:
1.安装服务
[root@localhost ~]# yum install autofs -y
2.配置文件,重启服务
[root@localhost ~]# vim /etc/named.conf
[root@localhost ~]# systemctl restart named

3.验证

练习二:
1.添加DNS服务器地址
[root@localhost ~]# vim /etc/resolv.conf

2.查看能否ping通
3.使用curl命令访问。查看能否看到web页面内容
