I have dnsmasq configured to use upstream dns servers manually set with the option "server=" in "/etc/dnsmasq.conf". These upstream servers are used to resolved public ip addresses and domains. This machine gets its DNS servers list by DHCP and looks like this in resolv.conf file. Code: nameserver 127.0.0.1 nameserver <upstream1> nameserver <upstream2> search <domain-name> Here is also the content of the file "/etc/resolvconf/interface-order" Code: lo* ens34* ens33* The DHCP is controlled by a different team and they may change the DNS servers at any time, I wanted to know if there is a way to tell dnsmasq to use the two upstream servers set by the DHCP server in resolv.conf instead of manually specifying the upsteam servers in dnsmasq.conf everytime the DNS servers IPs are changed by the networking team?
nameserver 127.0.0.1 nameserver <upstream1> nameserver <upstream2> search <domain-name>
lo* ens34* ens33*
Last edited by mahany; May 23rd, 2024 at 08:29 AM.
a b
Last edited by currentshaft; 1 Week Ago at 04:32 AM.
View Tag Cloud
Ubuntu Forums Code of Conduct