/etc/named.conf
/etc/named.rfc1912.zones 区域配置文件
/var/named/ 新增解析记录
/var/named/host.com.zone
$ORIGIN host.com. $TTL 600 ; 10 minutes @ IN SOA dns.host.com. dnsadmin.host.com. ( 2019111001 ;serial 10800 ;refresh 900 ;retry 604800 ;expire 86400 ;minimum ) NS dns.host.com. $TTL 60 ; dns A 192.168.100.41 referee1 A 192.168.100.41 referee2 A 192.168.100.42 referee3 A 192.168.100.43 referee4 A 192.168.100.44 referee5 A 192.168.100.45 referee6 A 192.168.100.46
/var/named/od.com.zone
$ORIGIN od.com. $TTL 600 @ IN SOA dns.od.com. dnsadmin.od.com. ( 2019111001 ;serial 10800 ;refresh 900 ;retry 604800 ;expire 86400 ;minimum ) NS dns.od.com. $TTL 60 dns A 192.168.100.41
检查配置
named-checkconf
修改DNS Server
重启网络
systemctl restart network
查看DNS配置文件
验证