Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update docker-compose.yml #34

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

thexavier666
Copy link

Removed DNS settings which pointed to 1.1.1.1, since direct connections to 1.1.1.1 bypasses DoH.
Queries should instead go through cloudflared only, which is 172.20.0.3 in this example.
I've tested it in my system using https://dnsleaktest.com.

Removed DNS settings which pointed to `1.1.1.1`, since direct connections to `1.1.1.1` bypasses DoH.
Queries should only go through cloudflared, which is `172.20.0.3` in this example
@@ -10,7 +10,6 @@ services:
ipv4_address: 172.20.0.2
dns:
- 127.0.0.1
- 1.1.1.1
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without this line I see the following errors when pihole container starts:

...
pihole         |   Checking if custom gravity.db is set in /etc/pihole/pihole-FTL.conf
pihole         |   Skipping Gravity Database Update.
pihole         | 
pihole         | s6-rc: info: service legacy-services successfully started
pihole         | fatal: unable to access 'https://github.com/pi-hole/pi-hole/': Could not resolve host: github.com
pihole         | fatal: unable to access 'https://github.com/pi-hole/AdminLTE/': Could not resolve host: github.com
pihole         | fatal: unable to access 'https://github.com/pi-hole/FTL/': Could not resolve host: github.com
pihole         |   Pi-hole version is v5.15.3 (Latest: null)
pihole         |   AdminLTE version is v5.18.3 (Latest: null)
pihole         |   FTL version is v5.20.1 (Latest: null)
pihole         |   Container tag is: 2023.01.10

Then if I docker exec into the pihole container a ping command fails to resolve the name:

$ docker exec -it pihole bash
root@pihole:/# ping google.com
ping: google.com: Temporary failure in name resolution

Adding back that 1.1.1.1 dns entry the startup looks good:

...
pihole         | s6-rc: info: service legacy-services: starting
pihole         |   Checking if custom gravity.db is set in /etc/pihole/pihole-FTL.conf
pihole         |   Skipping Gravity Database Update.
pihole         | 
pihole         | s6-rc: info: service legacy-services successfully started
pihole         |   Pi-hole version is v5.15.3 (Latest: null)
pihole         |   AdminLTE version is v5.18.3 (Latest: null)
pihole         |   FTL version is v5.20.1 (Latest: null)
pihole         |   Container tag is: 2023.01.10

Now the ping works:

$ docker exec -it pihole bash
root@pihole:/# ping google.com
PING google.com (142.250.200.78) 56(84) bytes of data.
64 bytes from mad07s24-in-f14.1e100.net (142.250.200.78): icmp_seq=1 ttl=249 time=3.66 ms
64 bytes from mad07s24-in-f14.1e100.net (142.250.200.78): icmp_seq=2 ttl=249 time=4.13 ms
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants