I have CentOS 7.2 (guest in VirtualBox, vagrant box
centos/7, no GUI).
I see there is a nameserver in file:
$ cat /etc/resolv.conf # Generated by NetworkManager nameserver 10.0.2.3
But how to add or replace with new one?
I have done this manually directly in the network:
$ vi /etc/sysconfig/network-scripts/ifcfg-eth0 PEERDNS=no DNS1=220.127.116.11 DNS2=18.104.22.168
And it works.
But is there any way to do this through
nmtui installed (in a selected system).