Change default DNS and name of the file system

nntn

New Member
Joined
Sep 1, 2021
Messages
27
Reaction score
3
Credits
247
How do I change from 8.8.8.8 and 4.4.4.4 to something else? There are 3 listed when issuing nmcli dev show | grep DNS

I entered the ones that I want to "Addtional DNS servers" but doesn't work.


Did a nmcli dev show | grep DNS. It still showed 8.8.8.8 and 8.8.4.4 and another one. Why are there 3?

---- Another question

My system lists 2 file systems. It's not sda.
df -Th | grep "^/dev" and it shows something esle

Which one should I use? There is the / and /boot/efi
 
Last edited:


dos2unix

Well-Known Member
Joined
May 3, 2019
Messages
1,073
Reaction score
745
Credits
5,574
Lots of questions, that is good.

DNS is now assigned to a specific interface.

If you do an...

ip add

Which intrface are you using?

You can do something like

nmcli con mod enp1s0 ipv4.dns "x.x.x.x,x.x.x.x"

notice the comma between the two IP addresses.
sometimes a simple

nmcli down enp1s0 , followed by a ...

nmcli con up enp1s0 is enough, but sometime you have to reboot for it to take effect.

============================

file systems are something different. /dev/sda is a block device (disk )
You may have a nvme drive.
The fie systems are typically shown...

df -h

or

mount
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!


Top