Hi! sorry my eng!!!
I cen't eddit resolv.conf with root. When i add nameserver ips in to resolv.conf and try to save, i get error "Permission denied".
I cen eddit other conf. files in /etc/. I have problem only with resolv.conf file.
Cent't edit resolv.conf with root
Re: Cent't edit resolv.conf with root
What are the current permissions of the file?
Does the file start with a comment: "# Generated by NetworkManager"
If yes, that is a hint that you should not edit the file directly.
If you do use NetworkManager, then you should tell NetworkManager to add those servers.
If you do use network.service, then you should tell dhclient or interface config to add those servers.
However, the default resolution library is not very smart with many servers.
It might be more efficient to run a caching nameserver. It will have its own configuration.
Code: Select all
ls -l /etc/resolv.conf
Does the file start with a comment: "# Generated by NetworkManager"
If yes, that is a hint that you should not edit the file directly.
If you do use NetworkManager, then you should tell NetworkManager to add those servers.
If you do use network.service, then you should tell dhclient or interface config to add those servers.
However, the default resolution library is not very smart with many servers.
It might be more efficient to run a caching nameserver. It will have its own configuration.
Re: Cent't edit resolv.conf with root
; generated by /usr/sbin/dhclient-script
-rw-r--r-- 1 root root 81 Oct 17 2017 /etc/resolv.conf
-rw-r--r-- 1 root root 81 Oct 17 2017 /etc/resolv.conf