Hi!
I need allow one domain: s7addthis com
so if i add it in whitelist Pihole still blocking this domain
I checked /etc/pihole/whitelist.txt and domain and subdomain s7addthis com are in the list
but in log i can see: s7addthis com - Blocked (regex/wildcard)
jfb
October 8, 2019, 3:08pm
2
What is the output of the following command from the Pi Terminal:
pihole -q -adlist -all s7addthis.com
root@Pi-Hole:~# root@Pi-Hole:~# pihole -q -adlist -all s7.addthis.com
root@Pi-Hole:~#: command not found
root@Pi-Hole:~# pihole -q -adlist -all s7.addthis.com
Match found in Whitelist
s7.addthis.com
Match found in https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts:
s7.addthis.com
Match found in http://sysctl.org/cameleon/hosts:
s7.addthis.com
Match found in https://hosts-file.net/ad_servers.txt:
s7.addthis.com
Match found in https://codeberg.org/spootle/blocklist/raw/branch/master/blocklist.txt:
s7.addthis.com
s7.addthis.com.prx.proxywebsite.co.uk
jfb
October 8, 2019, 3:18pm
5
What is the output of the following command from the Pi Terminal:
dig s7.addthis.com
root@Pi-Hole:~# dig s7.addthis.com
; <<>> DiG 9.11.3-1ubuntu1-Ubuntu <<>> s7.addthis.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 48169
;; flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;s7.addthis.com. IN A
;; ANSWER SECTION:
s7.addthis.com. 26 IN CNAME s8.addthis.com.
s8.addthis.com. 40 IN CNAME ds-s7.addthis.com.edgekey.net.
ds-s7.addthis.com.edgekey.net. 157 IN CNAME e3615.a.akamaiedge.net.
e3615.a.akamaiedge.net. 19 IN A 2.18.72.37
;; Query time: 39 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Tue Oct 08 15:20:46 UTC 2019
;; MSG SIZE rcvd: 152
jfb
October 8, 2019, 3:38pm
7
This shows that the domain was not blocked. You may have been looking at query log entries prior to when the domain was added to the whitelist.
I clear all logs and dns:
still blocking and whitelist not working for this domain
Screenshot_1|690x72
There is some other way add this domain to skipp blocking ?
jfb
October 8, 2019, 4:20pm
10
What is the output of:
cat /etc/pihole/regex.list
root@Pi-Hole:~# cat /etc/pihole/regex.list
root@Pi-Hole:~#
jfb
October 8, 2019, 4:26pm
12
Output of
sudo grep s7.addthis.com /etc/pihole/gravity.list
root@Pi-Hole:~# sudo grep s7.addthis.com /etc/pihole/gravity.list
s7.addthis.com.prx.proxywebsite.co.uk
root@Pi-Hole:~#
jfb
October 8, 2019, 5:38pm
15
Your Pi does not appear to be using itself for DNS resolution. Have you changed the default configuration?
To see what Pi-Hole returns for the dig, run this command from the Pi terminal
dig s7.addthis.com @127.0.0.1
jfb
October 8, 2019, 5:40pm
16
This entry in the gravity list will not block s7.addthis.com
since they are separate domains.
root@Pi-Hole:~# dig s7.addthis.com @127.0.0.1
; <<>> DiG 9.11.3-1ubuntu1-Ubuntu <<>> s7.addthis.com @127.0.0.1
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 55186
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;s7.addthis.com. IN A
;; ANSWER SECTION:
s7.addthis.com. 2 IN A 0.0.0.0
;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Tue Oct 08 17:40:19 UTC 2019
;; MSG SIZE rcvd: 59
root@Pi-Hole:~#
jfb
October 8, 2019, 5:47pm
18
Please generate a Pi-Hole debug log, upload it when prompted and post the token here.
Did You tested by self open web site: www.addthis.com with pihole?
Looks like i solved problem!
I just install one more pihole and start adding in whitelist domains and now site can load this plugin with pihole.
Later i will check diferences 1st and 2nd Pihole
@jfb - thanks for all Your support!
Raito00
October 10, 2019, 5:11am
22
Looks i found in my case why white list not work for some domain names.
Strange when i change Upstream DNS Servers to OpenDNS (ECS) everything working perfect but if i have in DNS settings Google (ECS) then some domains in whitelist not wok (blocked).
So i stay with OpenDNS (ECS) and all is OK.