I’ve got a host running a few containers: gitea and emby, for example. I can access those from any computer on my network. So I created a new container for DNS using BIND9.
My docker-compose.yml looks like this:
there are dashes up there where they should be, but the formatting of this forum removes it and changes the formatting of the font.
If I do:
nslookup nameOfserver 126.96.36.199 (which is the IP of the host computer) I get a timeout and it won’t connect.
if I do:
nslookup nameOfserver 172.22.0.2 (the IP of teh container) it works.
Doesn’t matter if I have the firewall off or on.
docker port dns_dns_1
53/tcp -> 0.0.0.0:53
Am I doing something crazy here?
edit: turns out - yes, yes I was. I didn’t specify udp in the docker-compose so it wasn’t working.