I am trying to activate NordVPN CyberSec by completing the following instructions in Debian 9.
I should be able to do the changes as root
and with sudo
like described for Ubuntu in the thread Should I edit my resolv.conf file to fix wrong DNS problem? and in the thread Linux: How do i edit resolv.conf but I cannot.
If you are using Linux or Mac OS X, please open the terminal and type in:
su
You will be asked for your root password, please type it in and press enterrm -r /etc/resolv.conf nano /etc/resolv.conf
When the text editor opens, please type in these lines:nameserver 103.86.99.99 nameserver 103.86.96.96
Now you have to close and save the file, you can do that by clicking
Ctrl + X
and pressingY
. Then please continue typing in the terminal:chattr +i /etc/resolv.conf reboot now
That is it. Your computer will reboot and everything should work correctly. If you will ever need to change your DNS addresses, please open the terminal and type in the following: su You will be asked for your root password, please type it in and press enter
chattr -i /etc/resolv.conf nano /etc/resolv.conf
Change DNS addresses, save and close the file.
chattr +i /etc/resolv.conf
I do the first step as su
/root but get the following.
Trying to change the file /etc/resolv.conf
content there with sudo
, I get operation not permitted
.
root@masi:/etc# ls -la * | grep resolv.conf
-rw-r--r-- 1 root root 89 Jan 22 2017 resolv.conf
-rw-r--r-- 1 root root 89 Jul 25 17:10 resolv.conf~
-rw-r--r-- 1 root root 0 Jan 22 2017 resolv.conf.tmp
-rwxr-xr-x 1 root root 1301 Nov 12 2015 update-resolv-conf
root@masi:/etc# sudo mv resolv.conf resolv.conf.tmp2
mv: cannot move 'resolv.conf' to 'resolv.conf.tmp2': Operation not permitted
OS: Debian 9