How do I configure my DNS settings in Ubuntu server?
askubuntu.com › questions › 346838However if you are on newer Ubuntu version, you might be using resolvconf (a package that manages the contents of /etc/resolv.conf). In order to set dns-nameservers which won't be removed after reboot add them in. sudo nano /etc/resolvconf/resolv.conf.d/base like . nameserver x.x.x.x nameserver x.x.y.y And afer that just do. sudo resolvconf -u