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 9,779 times
1
-
use `sudo apt install resolvconf` – Sajad Bahmani Apr 24 '21 at 00:08
-
5In modern systems, `/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
-
Your question should detail what configuration you are doing in that file; there might be better places for it. – user535733 Apr 24 '21 at 02:22
-
1At the top of the file: `# This file is managed by man:systemd-resolved(8). Do not edit.` – Rinzwind Apr 24 '21 at 06:02
-
@user535733, i'm working on DNS – Mr.Robot Apr 25 '21 at 01:42
-
DNS settings should be detailed in /etc/netplan or in your NetworkManager settings – user535733 Apr 25 '21 at 02:32
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.
Olivier Archer
- 23
- 3