标签:back ini nbsp div 工具 授权 install ons loop
安装:
yum install bind bind-utils
bind是主程序,bind-utils包含一些配置和测试工具
配置:
vim /etc/named.conf
options { listen-on port 53 { any; }; #允许通过本机那个ip4访问 listen-on-v6 port 53 { any; }; #允许通过那个ip6访问 directory "/var/named"; dump-file "/var/named/data/cache_dump.db"; statistics-file "/var/named/data/named_stats.txt"; memstatistics-file "/var/named/data/named_mem_stats.txt"; recursing-file "/var/named/data/named.recursing"; secroots-file "/var/named/data/named.secroots"; allow-query { any; }; #允许那个外部ip访问
vim /etc/named.rfc1912.zones
末尾添加: zone "yueke.com" IN { #正向解析 type master; file "yueke.com.zone"; allow-update { none; }; };
cp -a /var/named/named.loopback /var/named/yueke.com.zone
vim /var/named/yueke.com.zone
$TTL 1D @ IN SOA @ rname.invalid. ( 0 ; serial 1D ; refresh 1H ; retry 1W ; expire 3H ) ; minimum NS @ A 192.168.60.254 #@ == 域名 空的ip设的@ www A 192.168.60.20
SOA 授权
NS DNS
A IP
标签:back ini nbsp div 工具 授权 install ons loop
原文地址:https://www.cnblogs.com/yueke44/p/10102062.html