int86
You'r Born Free
This is for dial-up user on Ubuntu who does not find their /etc/resolv.conf file stable. i.e this gets revoked when reboot or just the computer be idle for a while. Thus changing ISP`s nameserver to OpenDNS becomes tiresome.
so just editing by # sudo gedit /etc/resolv.conf does not help.
And changing file mode by following commands also renders ISP`s DNS again.
$ sudo chmod 444 /etc/resolv.conf
Here is the real solution
$ sudo chattr +i /etc/resolv.conf
The change can be revoked anytime by following command
$ sudo chattr -i /etc/resolv.conf
Every time we dialup there is a creation of temporary file resolv.conf but by above command it sets the immutable flag on the file which makes it completely unchangable.
so just editing by # sudo gedit /etc/resolv.conf does not help.
And changing file mode by following commands also renders ISP`s DNS again.
$ sudo chmod 444 /etc/resolv.conf
Here is the real solution
$ sudo chattr +i /etc/resolv.conf
The change can be revoked anytime by following command
$ sudo chattr -i /etc/resolv.conf
Every time we dialup there is a creation of temporary file resolv.conf but by above command it sets the immutable flag on the file which makes it completely unchangable.