Skip to content

Instantly share code, notes, and snippets.

@pmoust
Last active Jan 31, 2021
Embed
What would you like to do?
DNS w/ reasonable privacy & ad-blocking
# DNS w/ (not so) reasonable privacy & ad-blocking
# Local-caching DNS via dockerd on xhyve/LinuxKit, for the default wifi interface on MacOSX, using
# Pi-hole 5.6 https://pi-hole.net/ and pointing to the DNS service offered by LibreOps RadicalDNS https://libreops.cc/radicaldns.html
# Admin-interface at http://127.0.0.1:8082/admin/
#
# Use https://libredns.gr/ for DoH/DoT to achieve reasonable privacy over the wire
docker run -d --name pihole \
-e ServerIP=127.0.0.1 \
-e WEBPASSWORD="mypihole" \
-e DNS1=88.198.92.222 \
-p 8082:80/tcp -p 53:53/tcp -p 53:53/udp \
pihole/pihole:v5.6-buster@sha256:6a633b5b2b4a9f343aa01101c89ebba36aa90003df0e379d2e702e0372ed9712 && \
networksetup -setdnsservers Wi-Fi 127.0.0.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment