On Tue, Dec 03, 2019 at 02:03:10PM -0600, Michael Hennebry wrote:
I'm using the default I got when I installed centos 7. Was not aware of any alternatives.
... Run 'nmcli con' to get a list of your network
[root@localhost ~]# nmcli con NAME UUID TYPE DEVICE Wired connection 1 e4c3a05e-5f33-3ae8-af71-31b70ecf040b ethernet enp0s25
Your connection's name is "Wired connection 1". The device name is enp0s25.
[root@localhost ~]#
connections, and then run 'nmcli con edit "Connection Name"' (replace "Connection Name" with the name of your ethernet connection). You can then set ipv4.ignore-auto-dns to 'yes' and then set ipv4.dns and ipv4.dns-search. This should override what DHCP sets.
[root@localhost ~]# nmcli con edit enp0s25 Error: Unknown connection 'enp0s25'. [root@localhost ~]# nmcli con edit eth0 Error: Unknown connection 'eth0'. [root@localhost ~]# nmcli con edit enp0s25 Error: Unknown connection 'enp0s25'. [root@localhost ~]#
You need to use the connection name, not the device name.