mirror of
https://git.adityakumar.xyz/blog.git
synced 2024-11-13 20:39:43 +00:00
1.4 KiB
1.4 KiB
title | date | lastmod | draft | keywords | description | tags | categories | author | comment | toc | autoCollapseToc | postMetaInFooter | hiddenFromHomePage | contentCopyright | reward | mathjax | mathjaxEnableSingleDollar | mathjaxEnableAutoNumber | hideHeaderAndFooter | flowchartDiagrams | sequenceDiagrams | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Change Nameserver using NetworkManager | 2022-08-01T17:59:33+05:30 | 2022-08-01T17:59:33+05:30 | false |
|
|
|
false | false | false | true | false | false | false | false | false | false | false |
|
|
Do not edit /etc/resolv.conf
. It will likely be replaced by NetworkManager.
Open a shell and add nameserver for existing connection.
nmcli con mod $ssid ipv4.dns "1.1.1.1 1.0.0.1"
The SSID can be found with nmcli con
.
Replace the IP addresses to your desired ones.
Now restart the connection to apply the changes.
nmcli con down $ssid
nmcli con up $ssid
Verify with cat /etc/resolv.conf
.