Gist: pi-hole-as-docker-container
docker pull pihole/pihole:latest
vim docker-compose.yml
============================================================
pihole:
restart: unless-stopped
container_name: pihole
image: pihole/pi-hole:latest
volumes:
- /home/wlanboy/pihole/:/etc/pihole/
- /home/wlanboy/pihole-dnsmasq/:/etc/dnsmasq.d/'
environment:
- TZ=Europe/Berlin
- ServerIP=your-docker-host-public-ip
- WEBPASSWORD=your-secure-password
dns:
- 8.8.8.8
- 8.8.4.4
ports:
- "53:53/tcp"
- "53:53/udp"
- "80:80"
============================================================
docker-compose up
List of the Black Lists
============================================================
https://raw.githubusercontent.com/crazy-max/WindowsSpyBlocker/master/data/hosts/win10/spy.txt
https://raw.githubusercontent.com/quidsup/notrack/master/trackers.txt
https://github.com/chadmayfield/pihole-blocklists/raw/master/lists/pi_blocklist_porn_all.list
https://v.firebog.net/hosts/Prigent-Phishing.txt
https://v.firebog.net/hosts/Prigent-Malware.txt
https://mirror.cedia.org.ec/malwaredomains/immortal_domains.txt
============================================================
Windows set DNS primary and secondary DNS servers:
============================================================
#get index of your network card:
Get-NetAdapter | Select-Object InterfaceAlias , InterfaceIndex
#get dns info
Get-DnsClientServerAddress -InterfaceIndex 9
#set dns info
Set-DNSClientServerAddress –interfaceIndex 9 –ServerAddresses ("ip-of-docker-host")
============================================================