dnsmasq 总是返回 REFUSED

f0r*_*d42 6 ubuntu dnsmasq

Ubuntu 服务器 16.04.04

dnsmasq.conf:

listen-address = 192.168.5.5, 172.30.108.1, 127.0.0.1 
log-queries
resolv-file = /etc/resolv.dnsmasq
Run Code Online (Sandbox Code Playgroud)

/etc/resolv.dnsmasq:

nameserver = 8.8.8.8
Run Code Online (Sandbox Code Playgroud)

/etc/resolv.conf:

# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.0.1
Run Code Online (Sandbox Code Playgroud)

辅助 | 查询 DNS

dnsmasq  13099  0.0  0.0  52864   400 ?        S    17:16   0:00 /usr/sbin/dnsmasq -x /var/run/dnsmasq/dnsmasq.pid -u dnsmasq -7 /etc/dnsmasq.d,.dpkg-dist,.dpkg-old,.dpkg-new --local-service --trust-anchor=.,19036,8,2,49AAC11D7B6F6446702E54A1607371607A1A41855200FD2CE1CDDE32F24E8FB5
Run Code Online (Sandbox Code Playgroud)

本地防火墙已关闭:

sudo ufw status
Status: inactive
Run Code Online (Sandbox Code Playgroud)

挖 cisco.com

; <<>> DiG 9.10.3-P4-Ubuntu <<>> cisco.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 51709
;; flags: qr rd ra ad; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;cisco.com.         IN  A

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Sun Apr 15 17:26:05 CEST 2018
;; MSG SIZE  rcvd: 27
Run Code Online (Sandbox Code Playgroud)

到此挖掘系统日志中的相应条目:

dnsmasq[13099]: query[A] cisco.com from 127.0.0.1
Run Code Online (Sandbox Code Playgroud)

我只是不明白为什么我总是被拒绝。

谢谢

小智 -1

这里同样的问题。通过禁用 ipv6 解决。