Change DNS Server
Entries are kept in /etc/resolv.enf
.
To change the DNS server, we would modify the entry:
➜ ~ cat /etc/resolv.conf
nameserver $SOME_DNS_SERVER
When using a DHCP address and the DHCP server provides a DNS setting, the DHCP server will replace the contents of the file when it renews the DHCP address.