公司内网DNS Server地址
IP: 192.168.1.204
DNS服务安装配置
# yum install dnsmasq
# sed -i 's/#strict-order/strict-order/' /etc/dnsmasq.conf
# sed -i '1inameserver 127.0.0.1' /etc/resolv.conf
# cat << EOF > /etc/dnsmasq.d/jfbrother.conf
> address=/*.jfbrother.com/192.168.1.249/
> address=/jfbrother.com/192.168.1.249/
> EOF
# systemctl start dnsmasq
# systemctl enable dnsmasq
# firewall-cmd --permanent --add-service dns
# firewall-cmd --reload
客户端配置DNS
# sed -i '1inameserver 192.168.1.204' /etc/resolv.conf
测试DNS解析
# dig @192.168.204 jfbrother.com