Docker containers can't access internet (127.0.0.11:53 server misbehaving)

Creating a bug report/issue

I have searched the existing open and closed issues

Required Information

  • DietPi version 9.8.0
  • Distro version bookworm
  • Kernel version Linux DietPi 6.1.0-27-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.115-1 (2024-11-01) x86_64 GNU/Linux
  • Architecture amd64
  • SBC model NativePC

Additional Information (if applicable)

  • Software title docker compose

Hi,

I have an issue with my docker stacks. I host a nginx reverse-proxy on a docker container. I changed the IP address of the host and the stack complains about not reaching internet.

The DNS server of the host is adguard-home manager. Every computer has internet, but somehow this particular docker stack cannot access internet and every containers (4 actually: nginx, authelia, maxmind-geoip, and crowdsec) throw me “error occurred during dial: dial udp: lookup site.tld on 127.0.0.11:53: server misbehaving”

I guess it’s something on the host or on the docker configuration, but I cannot find what or where to search…
Can you please help me?

Thanks!

Is AGH running as container as well?

Can you check which DNS server has been registered for your NPM container?

docker exec <container-name-or-id> cat /etc/resolv.conf