How do I change the DNS server IP of my droplet?

August 5, 2015 1.2k views
DNS Networking Debian

After going to /etc/resolve.conf and trying to change the DNS from to another server, I read the head of the file that says do not make any changes here as they will not be saved.

How can i go about changing the DNS to another server(s)?

2 Answers

I think you can ignore that:


I would check whether any configuration files contain entries which would overwrite /etc/resolv.conf the next time your droplet is rebooted.

For example, on RedHat based distributions, you can check the most common locations for these overrides by running:

find /etc/sysconfig/network-scripts/ifcfg-* /etc/sysconfig/network -type f | xargs grep DNS

On Debian based distributions, I would start by checking:

Have another answer? Share your knowledge.