Hi,

maybe someone can help me a bit :smiley:

so im running a Proxmox 8.1.4 instance with a docker container on it.

on this docker instance i run NPM alongside pihole.

my proxmox is using pihole as its primary DNS Server, which works fine for all machines.

however, when i try to renew a letsencrypt certificate on the NPM it fails to resolve acme-v02.api.letsencrypt.org and for the life of it i dont understand why…

in pihole i do not see any requests send from my NPM container to pihole.

pihole itself as well as all my other VMs and LXCs can use pihole properly as DNS

proxy hosts in NPM are working fine, just the renew process not.

when i switch my dockers DNS setting to use my router directly, renews can be done properly.

so it definately is a dns problem… i just cant wrap my head around where :smiley:

regards,

Gerry

5 Spice ups

didnt find the edit :smiley:
could it be, that my NPM container starts up BEFORE the pihole?
is it somehow possible to make my NPM Container dependend on pihole?
both are not in one compose stack

ok, i found it :slight_smile:
so, i had to bind port 53 udp to the local IP address of my docker host
so instead of:

ports:

  • “53:53/tdp”
  • “53:53/udp”

i had to switch it to:
ports:

  • “53:53/tcp”
  • “192.168.178.15:53:53/udp”

https://discourse.pi-hole.net/t/solve-dns-resolution-in-other-containers-when-using-docker-pihole/31413

1 Spice up