How to permanently save the content of /etc/resolv.conf

As I mentioned in the title, ctrl+s doesn't permanently save the content of that file, if I rebooted my machine I lost all the configuration I did in there, an help, please.

6

1 Answer

If you have # This file is managed by man:systemd-resolved(8). Do not edit., at the top of the file, then you can edit /etc/systemd/resolved.conf.

It's not the same syntax as /etc/resolv.conf, but man resolved.conf will help you.

Once the file is saved:sudo systemctl restart systemd-resolved

And check that the /etc/resolv.conf is updated.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like