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

Hi,

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 127.0.0.1;

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:

[main]
dhcp=dhclient

and it works again!

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