Need help setting up DNS resolution between containers #27317
-
Hello, can someone please help me setting up DNS resolution between two rootless containers? I just can't get it to work. This is a very simple Compose setup: name: test
services:
hello:
image: alpine:3
command: tail -f /dev/null
networks:
- example
world:
image: alpine:3
command: tail -f /dev/null
networks:
- example
networks:
example: Now I enter container
Also trying these two simple commands give me the same This is the output of
Note Thanks for any help! Update: I'm running an AdGuard Home container which exposes port 53 on the host for DNS resolution in my home network. Could this be a problem and if so, how can I run a DNS server on the host and have DNS resolution of container names inside containers? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This comment solved it for me. The container that runs the DNS server was binding the port like this on all interfaces
which was interfering with the internal DNS resolution. Instead of aardvark my own DNS was handling all queries. |
Beta Was this translation helpful? Give feedback.
This comment solved it for me. The container that runs the DNS server was binding the port like this on all interfaces
which was interfering with the internal DNS resolution. Instead of aardvark my own DNS was handling all queries.