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.
Asked
Active
Viewed 1.4k times
1 Answers
2
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.
sudo apt install resolvconf
– Sajad Bahmani Apr 24 '21 at 00:08/etc/resolv.conf
is a (symbolic link to a) dynamically generated file that is not intended to be edited by hand – steeldriver Apr 24 '21 at 00:24# This file is managed by man:systemd-resolved(8). Do not edit.
– Rinzwind Apr 24 '21 at 06:02