Change Nameserver using NetworkManager
Do not edit /etc/resolv.conf
. It will likely be replaced by NetworkManager.
Open a shell and add nameserver for existing connection.
|
|
The SSID can be found with nmcli con
.
Replace the IP addresses to your desired ones.
Now restart the connection to apply the changes.
|
|
Verify with cat /etc/resolv.conf
.
Author Aditya
LastMod 2022-08-01 (2bd72ee)