January 30, 20215 yr Where can DNS be configured in a docker container on a bridge network with static IP? I see where the IP address is configured, but not DNS. I don't have a DHCP server on this subnet, and it is not using the Unraid host network, so it can't use the DNS of the Unraid box. I need to assign DNS servers to my containers or some of them will not function. (Issue is not in regards to this specific container, I need to know how to do it for any that may require it) Edited January 31, 20215 yr by Foxglove
January 30, 20215 yr When you choose br0 you find it on your Router and use the dns of the Router i guessEnvoyé de mon HD1913 en utilisant Tapatalk
January 30, 20215 yr Author Thank you. I know what my DNS servers will be. But I don't see where to put them in the Docker configuration.
January 31, 20215 yr I think it will recognize the network you picked and use the DNS associated with that network bridge, kinda like the VMs??? It knows that is the gateway of last resort and send all traffic out that port? Or let it get picked up via the DHCP and see if that will prompt DNS resolution.
January 31, 20215 yr Author 49 minutes ago, Herbiewalker said: I think it will recognize the network you picked and use the DNS associated with that network bridge, kinda like the VMs??? It knows that is the gateway of last resort and send all traffic out that port? Or let it get picked up via the DHCP and see if that will prompt DNS resolution. If it pulled the DNS settings for the bridge interface it is on, that would make sense. So I looked there... and I didn't see any place to put DNS options there either. Am I missing something? Edited January 31, 20215 yr by Foxglove
January 31, 20215 yr You add it to extra parameters on each individual container (advanced view) (If it differs from the HOSTS dns settings (settings - network) --dns 208.67.222.222 --dns 208.67.220.220
January 31, 20215 yr Author Ah, thank you! That solved it. I saw 'more settings' and didn't realize there was also an 'advanced' view that had even more hidden stuff. I need to check the documentation and make sure that information there.
Archived
This topic is now archived and is closed to further replies.