Pihole not blocking ads in adlists.list

Expected Behaviour:

I am running raspbian jesse.
I am running:

pihole version
  Pi-hole version is v3.3-130-g2e6a937 (Latest: v3.3.1)
  AdminLTE version is v3.2.1-179-g3fd9b4d (Latest: v3.3)
  FTL version is vDev-8ef6f31 (Latest: v3.0)

I have installed the new dnsmasq because with the version of pihole I am using it appears to be incompatible.
I appear to have dnsmasq running, when I turn this off I am unable to resolve uris:

sudo systemctl status dnsmasq
● dnsmasq.service - dnsmasq - A lightweight DHCP and caching DNS server
   Loaded: loaded (/lib/systemd/system/dnsmasq.service; enabled)
  Drop-In: /run/systemd/generator/dnsmasq.service.d
           └─50-dnsmasq-$named.conf, 50-insserv.conf-$named.conf
   Active: active (running) since Fri 2018-05-11 03:21:54 UTC; 5min ago
  Process: 17636 ExecStop=/etc/init.d/dnsmasq systemd-stop-resolvconf (code=exited, status=0/SUCCESS)
  Process: 20110 ExecStartPost=/etc/init.d/dnsmasq systemd-start-resolvconf (code=exited, status=0/SUCCESS)
  Process: 20105 ExecStart=/etc/init.d/dnsmasq systemd-exec (code=exited, status=0/SUCCESS)
  Process: 20101 ExecStartPre=/usr/sbin/dnsmasq --test (code=exited, status=0/SUCCESS)
 Main PID: 20109 (dnsmasq)
   CGroup: /system.slice/dnsmasq.service
           └─20109 /usr/sbin/dnsmasq -x /run/dnsmasq/dnsmasq.pid -u dnsmasq -r /run/dnsmasq/resolv.conf -7 /etc/dnsmasq.d,.dpkg-dist,.dpkg-old,.dpkg-new --local-service

May 11 03:21:54 raspberrypi dnsmasq[20101]: dnsmasq: syntax check OK.
May 11 03:21:54 raspberrypi systemd[1]: Started dnsmasq - A lightweight DHCP and caching DNS server.

I am also running pihole-ftl but it doesn't appear to be able to start:

sudo systemctl status pihole-FTL
● pihole-FTL.service - LSB: pihole-FTL daemon
   Loaded: loaded (/etc/init.d/pihole-FTL)
   Active: active (exited) since Fri 2018-05-11 03:30:42 UTC; 2s ago
  Process: 25417 ExecStop=/etc/init.d/pihole-FTL stop (code=exited, status=0/SUCCESS)
  Process: 25490 ExecStart=/etc/init.d/pihole-FTL start (code=exited, status=0/SUCCESS)

May 11 03:30:42 raspberrypi pihole-FTL[25490]: Not running
May 11 03:30:42 raspberrypi pihole-FTL[25490]: rm: cannot remove ‘/var/run/pihole/FTL.sock’: No such file or directory
May 11 03:30:42 raspberrypi su[25504]: Successful su for pihole by root
May 11 03:30:42 raspberrypi su[25504]: + ??? root:pihole
May 11 03:30:42 raspberrypi su[25504]: pam_unix(su:session): session opened for user pihole by (uid=0)
May 11 03:30:42 raspberrypi pihole-FTL[25490]: FTL started!
May 11 03:30:42 raspberrypi systemd[1]: Started LSB: pihole-FTL daemon.

I am unable to restart it using sudo service pihole-FTL status or sudo systemctl status pihole-FTL

It throws an error, when trying to start:

rm: cannot remove ‘/var/run/pihole/FTL.sock’: No such file or directory

## but this file exists and is owned by pihole
ls -la /var/run/pihole/
total 0
drwxr-xr-x  2 pihole pihole  60 May 11 03:36 .
drwxr-xr-x 24 root   root   880 May 11 02:23 ..
srwxrwxrwx  1 pihole pihole   0 May 11 03:36 FTL.sock

I have added lists from List Generator ¦ Firebog. I added the tick lists and 2 porn lists.

I have run pihole -g to update the lists several times. They update correctly, but once it has run I notice:

[✓] Consolidating blocklists
  [✓] Extracting domains from blocklists
  [i] Number of domains being pulled in by gravity: 2575158
  [✓] Removing duplicate domains
  [i] Number of unique domains trapped in the Event Horizon: 2341775
  [i] Number of whitelisted domains: 2
  [i] Number of blacklisted domains: 0 <---- 0?!!!?!?

I have verified that a domain I want to block is inside of the blocklist:

pihole -q pornhub.com -exact
 Exact matches for pornhub.com found in:
   list.42.raw.githubusercontent.com.domains
   list.43.github.com.domains

I have checked my DNS:

-> % scutil --dns | grep 'nameserver\[[0-9]*\]'
  nameserver[0] : 192.168.1.112 <--- IP of my pi-hole
  nameserver[0] : 192.168.1.112

Actual Behaviour:

In actuality, when I visit https://pornhub.com, the page loads.

When running pihole -d I noticed the following

   May 11 02:16:31 dnsmasq[6070]: failed to load names from /etc/pihole/local.list: No such file or directory
   May 11 02:16:31 dnsmasq[6070]: failed to load names from /etc/pihole/black.list: No such file or directory
   May 11 02:16:31 dnsmasq[6070]: failed to load names from /etc/pihole/gravity.list: No such file or directory

Debug Token:

8zuax2tfk0

This is normal.

This is also normal.

What’s the output of dig pornhub.com ?

This actually shows you the count of the manually blacklisted domains.

Hi RamSet,
Thanks for the response, I should have thought to do that:

dig pornhub.com

; <<>> DiG 9.9.5-9+deb8u15-Raspbian <<>> pornhub.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 6802
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;pornhub.com.			IN	A

;; ANSWER SECTION:
pornhub.com.		2	IN	A	192.168.1.112

;; Query time: 10 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Fri May 11 04:15:30 UTC 2018
;; MSG SIZE  rcvd: 56

This resolved to the pi-hole ip
Do you have a secondary DNS set up on your clients?

Sometimes queries do slip through the secondary DNS...

I don't think so:

-> % scutil --dns | grep 'nameserver\[[0-9]*\]'
  nameserver[0] : 192.168.1.112
  nameserver[0] : 192.168.1.112

Ok so.... I checked my router. It had 8.8.8.8 setup as a secondary DNS (good idea to check). I'm guessing it must have been falling back to that.

It is blocked on my mobile.
On my desktop it still shows up. I've tried flushing my DNS cache

sudo dscacheutil -flushcache
Password:
me@kvlt [00:04:21] [~]

It must be environmental

Pi-hole v3.3+ is not supported on Jessie:

You have a few options:

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.