/etc/resolve.conf gets overwritten on reboot

Linode Staff

I'm trying to modify my /etc/resolve.conf to


But, after I restart my Linode, Network Manager will automatically overwrite my changes.

How can I prevent this from happening?

1 Reply

Hey there,

Depending on your distribution, Network Manager may automatically overwrite changes to resolve.conf.

This will happen for example in CentOS7.

To prevent Network Manager from overwriting your changes to resolv.conf, you will want to check out:


And you will want to remove the DNS1, DNS2, etc lines from this file. This is the information that Network Manager uses to overwrite your changes to resolve.conf, so after you remove those lines you will be able to manually edit resolve.conf without it being overwritten.

Hopefully that helps!


Please enter an answer

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct