配置网卡
[[email protected] ~]# vi /etc/sysconfig/network-scripts/ifcfg-ens33
搭建DNS
重启网卡并查看
[[email protected] ~]# sysrtemctl restart network
[[email protected] ~]# ifconfig ens33
搭建DNS
安装bind bind-chroot
[[email protected] ~]# yum -y install bind bind-chroot
修改配置
[[email protected] ~]# vim /etc/named.conf
搭建DNS
[[email protected] ~]# vim /etc/named.rfc1912.zones
搭建DNS
移动到named下 做备份
[[email protected] ~]# cd /var/named/
[[email protected] ~]# cp -p named.localhost abc.com.zone
[[email protected] ~]# cp -p named.localhost 192.168.1.zone
[[email protected] ~]# vim abc.com.zone
搭建DNS
[[email protected] ~]# vim 192.168.1.zone
搭建DNS
检验
[[email protected] named]# named-checkzone abc.com.zone 192.168.1.zone
zone abc.com.zone/IN: loaded serial 0
OK
关闭防火墙,降低沙盒 并启动
[[email protected] named]# systemctl restart named
[[email protected] named]# systemctl stop firewalld
[[email protected] named]# setenforce 0
安装bind-utils
[[email protected] named]# yum -y install bind-utils
测试正反向解析
[[email protected] named]# nslookup www.abc.com
[[email protected] named]# nslookup 192.168.1.143
搭建DNS

相关文章:

  • 2022-12-23
  • 2022-02-06
  • 2021-12-05
  • 2021-11-15
  • 2021-05-22
  • 2021-09-28
猜你喜欢
  • 2021-10-03
  • 2021-10-13
  • 2021-04-28
  • 2021-06-20
相关资源
相似解决方案