1

Ubuntu Server 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

/etc/resolv.dnsmasq:

nameserver = 8.8.8.8

/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

ps aux | grep 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

Local Firewall ist turned off:

sudo ufw status
Status: inactive

dig 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

to this dig corresponding entry in syslog:

dnsmasq[13099]: query[A] cisco.com from 127.0.0.1

I just don't get why I always get a REFUSED.

thanks

  • 1
    Are the rest of your network settings correct? Last time I had this, it was a wrong gateway that prevented outbound connections, and dnsmasq just was where I noticed it. – Ulrich Schwarz Apr 15 '18 at 16:13
  • indeed, it was this problem. For whatever reason dnsmasq used the wroing gateway. thanks – f0rd42 Apr 16 '18 at 9:04
  • @f0rd42 how did you correct the wrong gateway? – Daniel Sokolowski Apr 3 at 6:53
0

Same problem here. Resolved by disabling ipv6.

  • How did you disable IPv6, I'm having the same problem on OpenWrt and am unable to figure it out. – Daniel Sokolowski Apr 3 at 6:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.