Installed PiHole and DNSCrypt-Proxy then what?

2 min read

This is the continuation from the previous article Simplest pihole + dnscrypt-proxy implementation on Raspberry Pi 4 today I will discuss what configuration that we should do next.

Add Adlist
There are so many adlist available however my suggestion is that you don’t have to add everything you found in the internet to Pihole adlist since that might break the internet (for real) every web page you browse seems falls apart, website looking late 90’s or early 2000 prehistoric some streaming service not working eventually it makes like internet is broken. Here’s one that I used:

  • https://dbl.oisd.nl/ -> The biggest and popular list out there some say this is the only thing need to be added
  • https://v.firebog.net/hosts/AdguardDNS.txt
  • https://raw.githubusercontent.com/laksa19/indo-ads/master/indo-ads.txt -> Known Indonesian adlist
  • https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
  • https://mirror1.malwaredomains.com/files/justdomains
  • https://blocklist.site/app/dl/tracking
  • https://v.firebog.net/hosts/AdguardDNS.txt
  • https://adaway.org/hosts.txt
  • https://raw.githubusercontent.com/anudeepND/blacklist/master/adservers.txt
  • https://raw.githubusercontent.com/crazy-max/WindowsSpyBlocker/master/data/hosts/spy.txt
  • https://www.malwaredomainlist.com/hostslist/hosts.txt
  • https://raw.githubusercontent.com/Perflyst/PiHoleBlocklist/master/SmartTV.txt
  • https://raw.githubusercontent.com/Perflyst/PiHoleBlocklist/master/android-tracking.txt
  • https://reddestdream.github.io/Projects/MinimalHosts/etc/MinimalHostsBlocker/minimalhosts

Update Gravity database

  • When you added the list it’s not updating the database yet the simple one is from the pihole webadmin
  • Or through the terminal, since we are using docker we can bash to pihole terminal and run “pihole -g” to update

    docker exec -it pihole bash
    pihole -g

  • Or even better we can execute the command without bash to pihole terminal

    docker exec -it pihole pihole -g

Update Gravity database automatically

I know, you may think that I’m repetitive why not just do this and omit the manually update but at least you learn something about docker and sometimes when you want to add new adlist you can update the database immediately without waiting.For this point we need crontab:

$ crontab -e

Copy below line

0 */6 * * * /usr/bin/docker exec pihole pihole -g >/dev/null

It will run to update gravity database every 6 hours in silence

Use mobile apps to control your Pihole to disable or enable.
My recommendation would be:

  • Pi-hole remote – https://apps.apple.com/us/app/pi-hole-remote/id1515445551
  • Philly – https://apps.apple.com/us/app/philly-manage-your-pi-hole/id1512490851

Got any tips? Let me know in the comment section.


Be generous and tipshare this post.
How much do you want to tip?
USD       


Don't know how to pay?