Report this

What is the reason for this report?

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

Posted on August 5, 2015

After going to /etc/resolve.conf and trying to change the DNS from 8.8.8.8 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)?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

I think you can ignore that:

/etc/resolv.conf:
nameserver 1.2.3.4
nameserver 4.3.2.1

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:

/etc/network/interfaces

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.