I have an Ubuntu 18.04 Server with several NICs with different types of configuration: static and DHCP.

I want to have a set of DNS servers for all the interfaces, no matter if they are DHCP or static, I want that the system use always those DNS servers.

Where I put that configuration in Ubuntu 18.04?

BTW, the same server will have dnsmasq installed but that shouldn't matter much for my question.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.