我需要帮助修复拒绝状态。我看了named.conf
,一切看起来都不错。
我甚至将allow-query
更改为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
答案 0 :(得分:0)
我想我必须做一个 服务名为restart。一切都开始几乎立即开始工作
答案 1 :(得分:0)
我通过更改bind allowed-query
配置部分中的options
解决了同样的问题。我包含了我的vpn网络10.1.0.0/24
来访问dns:
options {
...
allow-query { localhost; 10.1/24; };
...
};
之后,我执行sudo service named reload
重新读取配置。
答案 2 :(得分:0)
我编辑了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