PI Hole DNS Server timeout

Posted on Jul 31, 2023

When I was installing and configuring the PI Hole DNS Server on a Docker container, I encountered a DNS timeout problem when using it as my DNS. After hours of trying to figure out the problem, I resolved it by modifying the Docker Compose file and adding my host IP address to it.

Basically, I went from:

ports:
  - 53:53/udp
  - 53:53/tcp

To:

    ports:
      - host_ip:53:53/udp
      - host_ip:53:53/tcp