Unable to prepend dns server to /etc/resolv.conf after upgrading to Fedora 31


After upgrading from Fedora 30 to Fedora 31 prepending DNS servers to /etc/resolv.conf has stopped working. I have the following configuration to achieve it (used to work before):

$ cat /etc/dhcp/dhclient.conf
prepend domain-name-servers;

What is the new way of achieving the same?

1 Like

Post the output:

rpm -q dhcp-client
grep -v -e "^#" -e "^$" /etc/NetworkManager/{*.conf,conf.d/*}
1 Like

Thanks @vgaetera!

I created file /etc/NetworkManager/conf.d/10-dhcp.conf with the following content:


and it works again!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.