September 1, 20223 yr How do I get a docker container to use both a public DNS name resolution server, and my local LAN router? I want to use the public DNS name resolution server for Internet names, and want to use my router for LAN names. For example: I want to ping google.com (Internet) I want to ping tower (local LAN) Thank you.
September 2, 20223 yr Community Expert this is not possible (by DNS design) What you CAN do is to install a local DNS Server somewhere which carries the local zones and forwards the remaining one to a public server. Look around for DNSMASQ, Pihole or something.
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.