dns服务:是域名解析服务,它的作用是将域名解析成IP地址,或者是将IP地址解析成域名。
实验环境:我租了一个VPS服务器,搭建的centos
win7客户端 192.168.80.1
前提是他们要在同一环境里面
第一步,关闭防火墙和selinux特性,再安装服务
yum -y install bind
临时关闭防火墙
systemctl stop firewalld
永久关闭防火墙
systemctl disable firewalld
临时关闭selinux特性
setenforce 0
永久关闭selinux,首先要进入配置文件 vim /etc/selinux/config