linux 7 创建DNS服务器
在局域网内搭建DNS服务器,并将www.vcsa.com解析为10.1.132.15
1.安装Linux
Oracle linux 7.3,IP:10.1.132.1
2.安装bin
挂载linux 7.3 安装盘
mount /dev/sr0 /mnt
写repo
cd /etc/yum.repo.d touch cdrom.repo [cdrom] name=cdrom baseurl=file:///mnt enabled=1 gpgcheck=0
3.安装bind
yum -y install bind yum -y install bind-utils
4./etc/named.conf
5./etc/named.rfc1912.zones
6./var/named/vcsa.com.zone
cp -p named.localhost vcsa.come.zone
7./etc/named/vcsa.com.local
cp -p vcsa.com.zone vcsa.com.local
8.关防火墙,selinux
systemctl stop firewalld systemctl disable firewalld cd /etc/selinux vi config
8.在局域网内测试
寻一台windows机器,DNS写上10.1.132.1