How do I configure my DNS settings in Ubuntu server?
askubuntu.com › questions › 346838Set DNS Servers. You need to configure the /etc/network/interfaces file if you want to change your DNS server via the command line. It should look something like this: # The loopback network interface auto lo iface lo inet loopback # The primary network interface auto eth0 iface eth0 inet static address 192.168.X.X netmask 255.255.255.0 gateway 192.168.X.X dns-nameservers X.X.X.X.