Fix OpenDNS for Ubuntu Dial-up user

Status
Not open for further replies.

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.
 

mehulved

18 Till I Die............
it won't work if the file system isn't ext3 or ext2.
The proper solution has been given by me in andy's thread.
 
OP
int86

int86

You'r Born Free
Ya I forgot to mention about ext3 but anyway you did.
I searched this and other forum and found the solution after 5 days.
hell my airtel gprs is too slow.
@mehulved I was after you for the same solution but you might be busy to reply at irc

It was here earlier but could not found it in time:
*www.thinkdigit.com/forum/showthread.php?t=33935
 
Last edited:
Status
Not open for further replies.
Top Bottom