You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Software source: docker-ce Docker version 27.1.2, build d01f264
Hardware architecture: x86
docker-compose.yml contents, docker run shell command, or paste a screenshot of any UI based configuration of containers here
emathis@T430:~/Containers/pi-hole$ cat compose.yml
networks:
# piholeipv6:
# name: piholeipv6
# enable_ipv6: true
# ipam:
# config:
# - subnet: 2001:0DB8::/112
piholeipv4:
name: piholeipv4
# More info at https://github.com/pi-hole/docker-pi-hole/ and https://docs.pi-hole.net/
services:
pihole:
container_name: pihole
image: pihole/pihole:2024.07.0
# For DHCP it is recommended to remove these ports and instead add: network_mode: "host"
ports:
- "53:53/tcp"
- "53:53/udp"
- "8053:80/tcp"
networks:
#- piholeipv6
- piholeipv4
environment:
#https://github.com/pi-hole/docker-pi-hole#environment-variables
TZ: 'America/New_York'
WEBPASSWORD: '...'
WEBLOGS_STDOUT: 1
PIHOLE_DNS_: 192.168.192.2
TEMPERATUREUNIT: f
PHP_ERROR_LOG: /dev/stderr
# Volumes store your data between container upgrades
volumes:
- './etc-pihole:/etc/pihole'
- './etc-dnsmasq.d:/etc/dnsmasq.d'
- './resolv.conf:/etc/resolv.conf'
restart: unless-stopped
emathis@T430:~/Containers/pi-hole$ cat compose.override.yml
services:
pihole:
hostname: dns1
any additional info to help reproduce
After I set the hostname in docker compose the pihole cant resolve it self correctly using that hostname. The hostname always resolves as 0.0.0.0. After confirming this by removing the FQDN and using the shortname you can see this problem.
Eriks-MacBook-Pro:~ erikmathis$ for i in $(seq 1 3); do echo -n "dns$i: "; dig @DNS${i} dns${i} +short; done
dns1: 0.0.0.0
dns2: 0.0.0.0
dns3: 0.0.0.0
Eriks-MacBook-Pro:~ erikmathis$ for i in $(seq 1 3); do echo -n "dns$i: "; dig @DNS${i} dns${i}.themathis.house +short; done
dns1: 192.168.192.32
dns2: 192.168.192.95
dns3: 192.168.192.96
Even after removing the hostname and falling back to the container name.
Eriks-MacBook-Pro:~ erikmathis$ dig @192.168.192.32 65118bb2f1f7 +short
0.0.0.0
These common fixes didn't work for my issue
[X ] I have tried removing/destroying my container, and re-creating a new container
[X ] I have tried fresh volume data by backing up and moving/removing the old volume data
[ X] I have tried running the stock docker run example(s) in the readme (removing any customizations I added)
I have tried a newer or older version of Docker Pi-hole (depending what version the issue started in for me)
[X ] I have tried running without my volume data mounts to eliminate volumes as the cause
If the above debugging / fixes revealed any new information note it here.
Add any other debugging steps you've taken or theories on root cause that may help.
I disabled ipv6 because I thought it was causing the issue.
Changed the hostnames several times.
The text was updated successfully, but these errors were encountered:
This is a: Run Issue
Details
Related Issues
How to reproduce the issue
After I set the hostname in docker compose the pihole cant resolve it self correctly using that hostname. The hostname always resolves as 0.0.0.0. After confirming this by removing the FQDN and using the shortname you can see this problem.
Eriks-MacBook-Pro:~ erikmathis$ for i in $(seq 1 3); do echo -n "dns$i: "; dig @DNS${i} dns${i} +short; done
dns1: 0.0.0.0
dns2: 0.0.0.0
dns3: 0.0.0.0
Eriks-MacBook-Pro:~ erikmathis$ for i in $(seq 1 3); do echo -n "dns$i: "; dig @DNS${i} dns${i}.themathis.house +short; done
dns1: 192.168.192.32
dns2: 192.168.192.95
dns3: 192.168.192.96
Even after removing the hostname and falling back to the container name.
Eriks-MacBook-Pro:~ erikmathis$ dig @192.168.192.32 65118bb2f1f7 +short
0.0.0.0
These common fixes didn't work for my issue
docker run
example(s) in the readme (removing any customizations I added)If the above debugging / fixes revealed any new information note it here.
Add any other debugging steps you've taken or theories on root cause that may help.
I disabled ipv6 because I thought it was causing the issue.
Changed the hostnames several times.
The text was updated successfully, but these errors were encountered: