docker-pi-hole
gravity-sync
Our great sponsors
docker-pi-hole | gravity-sync | |
---|---|---|
203 | 121 | |
7,676 | 2,086 | |
2.8% | - | |
7.8 | 4.4 | |
5 days ago | about 1 month ago | |
Shell | Shell | |
GNU General Public License v3.0 or later | GNU General Public License v3.0 only |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
docker-pi-hole
-
Problem - Pi-Hole not getting many DNS requests
Yesterday I deployed the official pi hole docker container on my raspberry pi 3 and set a custom DNS address on my phone addressing to the pi.
-
No internet access for containers co-hosted with pihole
More info at https://github.com/pi-hole/docker-pi-hole/ and https://docs.pi-hole.net/
version: "3" # More info at https://github.com/pi-hole/docker-pi-hole/ and https://docs.pi-hole.net/ networks: dns_net: driver: bridge ipam: config: - subnet: 10.2.0.0/24 services: pihole: depends_on: [unbound] container_name: pihole image: pihole/pihole:latest hostname: pihole networks: dns_net: ipv4_address: 10.2.0.100 ports: - "5335:53/tcp" - "5335:53/udp" - "7000:80/tcp" environment: TZ: ${TZ} WEBPASSWORD: ${PWD} FTLCONF_LOCAL_IPV4: ${HOST_IP} # Set to server's LAN IP, used by web block modes. PIHOLE_DNS_: 10.2.0.200 # Upstream DNS server(s) for Pi-hole to forward queries to, separated by a semicolon DNSMASQ_LISTENING: all # "Listen on all interfaces, permit all origins" # Volumes store your data between container upgrades volumes: - /var/lib/docker/volumes/pihole/etc-pihole:/etc/pihole - /var/lib/docker/volumes/pihole/etc-dnsmasq.d:/etc/dnsmasq.d healthcheck: disable: true restart: unless-stopped unbound: # https://github.com/MatthewVance/unbound-docker container_name: unbound image: mvance/unbound:latest hostname: unbound networks: dns_net: ipv4_address: 10.2.0.200 ports: - "${HOST_IP}:53:53/udp" - "${HOST_IP}:53:53/tcp" healthcheck: disable: true restart: unless-stopped
-
Synology/MACVLAN/BRIDGE help
services: pihole: container_name: pihole image: pihole/pihole:latest hostname: pihole # Container hostname (optional) domainname: mynetwork.local # Container domain (optional) mac_address: f7:55:63:b0:68:83 # Random MAC address (optional) networks: virtualnet: # Name of macvlan ipv4_address: 192.168.100.249 # Desired IP for pihole dns: - 127.0.0.1 - 1.1.1.1 ports: - "53:53/tcp" - "53:53/udp" - "67:67/udp" - "80:80/tcp" - "443:443/tcp" volumes: - ./pihole-configs/:/etc/pihole/ - ./dnsmasq.d-configs/:/etc/dnsmasq.d/ # DNSMASQ_USER # https://github.com/pi-hole/docker-pi-hole/issues/963 # https://github.com/pi-hole/docker-pi-hole/blob/master/README.md#upgrade-notes environment: FTLCONF_LOCAL_IPV4: 10.59.0.6 # Desired IP for pihole VIRTUAL_HOST: pihole.mynetwork.local DNSMASQ_USER: root PIHOLE_DNS_: 1.1.1.1;1.0.0.1;2606:4700:4700::1111;2606:4700:4700::1001 restart: unless-stopped # Set container to always restart
-
Need a totally updated guide for setting up pi-hole on Synology DSM 7.1.1+
I have't yet used the NAS with docker so I don't know how exactly to set it up, but I run my pihole in a container and I just followed the official guide https://github.com/pi-hole/docker-pi-hole
-
I'm struggling to get a Pi-Hole docker container working on my home network
More info at https://github.com/pi-hole/docker-pi-hole/ and https://docs.pi-hole.net/
- can i run a pi hole server on a jailbroken iphone ?
-
What's the easiest way to redirect a local domain name to nginx proxy manager?
The Pi-hole documentation addresses the port 53 conflict for Ubuntu and Fedora. See the section “Installing on Ubuntu or Fedora” on this page.
-
DNS Issues
Docker Tag 2023.02.2
gravity-sync
-
Sync Local DNS and Lists on second pihole - latest way?
OR I could implement https://github.com/vmstan/gravity-sync as it's last commit was a year ago but users still seem to be using it.
- Have any idea ?
-
Two piholes and both with unbound?
As others have said both instances should be totally complete as the idea is if one goes offline you should still have another that functions exactly the same. I also run Gravity Sync in my environment, helps keep down the maintenance. When I whitelist a domain on one it syncs to the other within minutes, that kind of thing.
the github page has a really good walkthrough and explanation
-
Running PiHole on a second server
I don't have anything add to your question. But I recommend installing gravity-sync if you're going to run two piholes. It will sync up DNS entries (among other things) automatically to the second pihole when you add a entry one of them. https://github.com/vmstan/gravity-sync
-
Using RPi for Pihole and remote access gateway
Run Pihole on both, if DNS goes down its painful. You can sync them with https://github.com/vmstan/gravity-sync
-
Who else doesn’t work in IT? What are you struggling with today.
Hmm, per their GitHub page, "Starting in Gravity Sync 4, replication of static DHCP assignments is now supported." (Found here: https://github.com/vmstan/gravity-sync/wiki/DHCP-Replication) -- But, as I stated before, I don't use PiHole for DHCP reservations so I can't comment on if it does or doesn't work.
-
What do you run your Pihole on?
They're separate DietPi installs with Gravity Sync to keep the lists synced, but they each maintain their own resolver (unbound) caches upstream, and all clients are configured for primary (Pihole) and secondary (Bihole) addresses, then a firewall rule on the router that forwards any traffic to port 53 (AKA DNS) to Pihole. They both feed metrics to a single host that gives me a custom dashboard. Secondary unit gets less traffic, so I also run NUT (Network UPS Tools) on it to control my APC UPS.
-
Homelab DNS?
Two pi holes with gravity sync? Then it wouldn't matter which one it hit https://github.com/vmstan/gravity-sync
-
Backup DNS if/when AdGuard container doesn't work
I decided to setup a 2 node replicated cluster with Pi-Hole using this excellent collection of scripts - https://github.com/vmstan/gravity-sync You can probably adopt it to use AdGuard since it has even simpler configuration than Pi-Hole. Here are some ideas how to do that here - https://github.com/AdguardTeam/AdGuardHome/issues/573
What are some alternatives?
Nginx Proxy Manager - Docker container for managing Nginx proxy hosts with a simple, powerful interface
docker-pihole-unbound - Run Pi-Hole + Unbound on Docker
docker-pihole-sync - A Docker Container To Sync Two Piholes
pihole-updatelists - Update Pi-hole's lists from remote sources easily
crowdsec - CrowdSec - the open-source and participative security solution offering crowdsourced protection against malicious IPs and access to the most advanced real-world CTI.
AdGuardHome - Network-wide ads & trackers blocking DNS server
pi-hole-keepalived
watchtower - A process for automating Docker container base image updates.
caddy-docker-proxy - Caddy as a reverse proxy for Docker
docker-wireguard
docker-icloudpd - An Alpine Linux 3.19.0 container for the iCloud Photos Downloader command line utility
log2ram - ramlog like for systemd (Put log into a ram folder)