Foxglove Posted January 30, 2021 Share Posted January 30, 2021 (edited) 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, 2021 by Foxglove Quote Link to comment
rachid596 Posted January 30, 2021 Share Posted January 30, 2021 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 Quote Link to comment
Foxglove Posted January 30, 2021 Author Share Posted January 30, 2021 Thank you. I know what my DNS servers will be. But I don't see where to put them in the Docker configuration. Quote Link to comment
Herbiewalker Posted January 31, 2021 Share Posted January 31, 2021 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. Quote Link to comment
Foxglove Posted January 31, 2021 Author Share Posted January 31, 2021 (edited) 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, 2021 by Foxglove Quote Link to comment
Squid Posted January 31, 2021 Share Posted January 31, 2021 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 1 Quote Link to comment
Foxglove Posted January 31, 2021 Author Share Posted January 31, 2021 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. 1 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.