Bind9仅本地可用问题求助:Apache2多站点部署时外部无法访问DNS域名
Bind9仅本地可用问题求助:Apache2多站点部署时外部无法访问DNS域名
各位大佬好!我现在在部署Apache2多站点,需要用域名来访问这些站点,所以搭了Bind9作为DNS服务器,但遇到个棘手的问题——DNS只能在本地ping通,外部机器完全无法解析访问,有没有懂行的朋友能帮忙排查下问题出在哪?怎么解决呀?
我先把目前的配置文件贴出来,麻烦大家帮忙看看:
named.conf.options配置
directory "/var/cache/bind"; // If there is a firewall between you and nameservers you want // to talk to, you may need to fix the firewall to allow multiple // ports to talk. See http://www.kb.cert.org/vuls/id/800113 // If your ISP provided one or more IP addresses for stable // nameservers, you probably want to use them as forwarders. // Uncomment the following block, and insert the addresses replacing // the all-0's placeholder. forwarders { 1.2.3.4; 5.6.7.8; }; //======================================================================== // If BIND logs error messages about the root key being expired, // you will need to update your keys. See https://www.isc.org/bind-keys //======================================================================== dnssec-validation no; listen-on-v6 { any; }; listen-on { any; }; allow-query-cache { any; }; acl trusted { 192.168.1.0/24; // Local network 10.0.0.0/8; // Another local network }; allow-query { trusted; }; };
resolve.conf配置
search rewardads.net domain rewardads.net
db.rewardads.net区域文件配置
@ IN SOA dns.rewardads.com. root.dns.rewardads.net. ( 2023110901 ; Serial 3600 ; Refresh 1800 ; Retry 604800 ; Expire 86400 ) ; Minimum TTL IN NS dns.rewardsads.net. dns IN A 185.229.236.154
我自己检查了好多次,本地ping域名是正常的,但外部机器就是解析不了,是不是配置里有什么地方限制了外部访问?或者区域文件里有拼写错误?麻烦大家帮忙指点一下,谢谢啦!
备注:内容来源于stack exchange,提问作者Nathanub
相关产品推荐
相关产品推荐

