我需要帮助修复被拒绝的状态。我看了一下named.conf
一切看起来都很好。
我什至改变了allow-query
to any
, 它曾经是localhost
.
dig xxx.com @ns1.xxx.com
; <<>> DiG 9.8.3-P1 <<>> xxx.com @ns1.xxx.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 41866
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; WARNING: recursion requested but not available
;; QUESTION SECTION:
;xxx.com. IN A
;; Query time: 29 msec
;; SERVER: xx.xx.xx.xxx#53(xx.xx.xx.xxx)
;; WHEN: Wed Feb 25 23:04:48 2015
;; MSG SIZE rcvd: 41
- 为了解决这个问题,我首先安装了bind9。
-
我编辑了resolve.conf以显示以下内容:
#DNS=8.8.8.8 8.8.4.4 2001:4860:4860::8888 2001:4860:4860::8844
#FallbackDNS=
#allow-recursion { any; };
-
然后我在bind9配置文件中编辑了下面的行
# run resolvconf?
RESOLVCONF=yes
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)