Pi-hole with DNSProxy: Leveraging advanced DNS protocols like DoH, DoT, DNSCrypt for secure DNS.
1.4K
This Docker image combines Pi-hole (a popular network-wide ad blocker) with DNSProxy (a flexible DNS proxy with advanced features like DoH, DoT, and DNSCrypt support). It is designed to provide a robust and customizable solution for managing DNS traffic while blocking ads and trackers across your network.
x86, arm, and x64, ensuring compatibility with a wide range of devices (e.g., Raspberry Pi, servers, desktops).versions.json).build.sh) to automate the creation and publishing of Docker images for all supported architectures.dnsproxy-run.sh) ensures both services start and run concurrently.Pull the latest version of the image from Docker Hub:
docker pull xehmad/pihole-dnsproxy:latest
Run the container with the necessary ports and volumes:
docker run -d --name pihole-dnsproxy -p 53:53/udp -p 53:53/tcp -p 443:443/tcp -p 443:443/udp -e FTLCONF_webserver_api_password="YourPassword" -e FTLCONF_dns_upstreams="127.0.0.1#5053" xehmad/pihole-dnsproxy:latest
Note
Make sure to add envirnment variable "-e" for upstream dns to 127.0.0.1#5053 (or port you set on configration of dns proxy)
Access the Pi-hole admin interface at https://<your-server-ip>/admin.
Edit the dnsproxy.conf file to customize DNSProxy settings, such as enabling DoH, DoT, or DNSCrypt. Example configuration:
listen=0.0.0.0:5053
upstream=https://dns.google/dns-query # DoH
upstream=tls://dns.quad9.net # DoT
dnscrypt=sdns://example-dnscrypt-server
Tip
You can mount `dnsproxy.conf` to the host to make it persistent and tailored to your needs:
-v /path/to/dnsproxy.conf:/etc/dnsproxy/dnsproxy.conf:ro
DNSProxy supports the following advanced DNS protocols:
https://cloudflare-dns.com/dns-query) or Google (https://dns.google/dns-query).tls://dns.quad9.net).Example dnsproxy.conf for advanced use cases:
listen=0.0.0.0:5053
upstream=https://cloudflare-dns.com/dns-query # DoH
upstream=tls://dns.quad9.net # DoT
dnscrypt=sdns://example-dnscrypt-server
fallback=https://dns.google/dns-query
Contributions are welcome! If you encounter issues or have suggestions, please open an issue or submit a pull request.
This project is licensed under the MIT License.
Content type
Image
Digest
sha256:9b918b188…
Size
44.6 MB
Last updated
7 months ago
docker pull xehmad/pihole-dnsproxy:1.6.5