chriscrowe / docker-pihole-unbound

Run Pi-Hole + Unbound on Docker
1.04k stars 270 forks source link

Fix for DNS unavailability #232

Closed MaHl111 closed 6 months ago

MaHl111 commented 7 months ago

This should fix incorrect IP in /etc/resolv.conf as described in #223, resulting in "DNS resolution is currently unavailable". Duplicate: https://github.com/chriscrowe/docker-pihole-unbound/issues/215#issuecomment-1762050892. Also contains improvement to readability by moving config files to separate folder.

MaHl111 commented 6 months ago

Even though worked for me locally, using image provided in my repository still causing the issue, gonna investigate further. Current solution is either to define --dns 127.0.0.1 during docker run, add dns to your compose file:

pihole:
    container_name: pihole
    image: cbcrowe/pihole-unbound:latest
    dns:
      - 127.0.0.1

or edit /etc/resolv.conf after container is running.