Pi-hole not receiving queries?

$ grep log-queries /etc/dnsmasq.d/01-pihole.conf

log-queries

Sorry forgot one:

grep "log-queries\|log-facility" /etc/dnsmasq.d/01-pihole.conf

then I get an additional line

log-facility=/var/log/pihole.log

dnsmasq -v

And:

stat /var/log/pihole.log

$ dnsmasq -v

Dnsmasq version 2.76  Copyright (c) 2000-2016 Simon Kelley
Compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth DNSSEC loop-detect inotify

and

$ stat /var/log/pihole.log

  File: /var/log/pihole.log
  Size: 0         	Blocks: 0          IO Block: 4096   regular empty file
Device: 811h/2065d	Inode: 12584931    Links: 1
Access: (0644/-rw-r--r--)  Uid: (  120/ dnsmasq)   Gid: (    0/    root)
Access: 2017-12-30 16:24:43.399428023 -0800
Modify: 2017-12-30 16:24:43.255443486 -0800
Change: 2017-12-30 16:24:43.255443486 -0800
 Birth: -

sudo netstat -nltup | grep ":53 "

$ sudo netstat -nltup | grep ":53 "

tcp        0      0 0.0.0.0:53              0.0.0.0:*               LISTEN      700/dnsmasq         
tcp6       0      0 :::53                   :::*                    LISTEN      700/dnsmasq         
udp        0      0 172.17.0.1:53           0.0.0.0:*                           588/named           
udp        0      0 10.8.0.1:53             0.0.0.0:*                           588/named           
udp        0      0 192.168.1.150:53        0.0.0.0:*                           588/named           
udp        0      0 127.0.0.1:53            0.0.0.0:*                           588/named           
udp        0      0 0.0.0.0:53              0.0.0.0:*                           700/dnsmasq         
udp6       0      0 :::53                   :::*                                588/named           
udp6       0      0 :::53                   :::*                                700/dnsmasq

I almost gave up :smiley:
But you have another DNS daemon/service running called "named" answering instead of dnsmasq.
Kill that one and your good to go I hope?

sudo systemctl stop named

sudo systemctl disable named

sudo systemctl restart dnsmasq

EDIT: Ohw and check again after with below one:

dig ads.nexage.com @localhost 1> /dev/null; tail -2 /var/log/pihole.log

I hope I wasn't using named for anything.. haha. After disabling:

$ dig ads.nexage.com @localhost 1> /dev/null; tail -2 /var/log/pihole.log

Dec 30 17:14:12 dnsmasq[14851]: query[A] ads.nexage.com from ::1
Dec 30 17:14:12 dnsmasq[14851]: /etc/pihole/gravity.list ads.nexage.com is 192.168.1.150

ITS WORKING!

Welcome to ad free world :wink:

Thanks everyone and especially deHakkelaar for all your help! I really appreciate it, and I'd just like to say I'm seriously impressed on the infrastructure you've built here for support! Keep being awesome!

1 Like