I know how to change the DNS of my network from GUI Network Manager:
- Right click on the network manager icon in the panel and choose "Edit connections..."
- Select your connection from the wired or wireless tab, choose "Edit"
- Choose IPv4 settings tab
- Switch method to "Automatic (DHCP) addresses only"
- Enter the DNS you want in the box "Additional DNS servers" and press "Apply"
How do I do exactly the same thing from Terminal?
nmtui
.