DIGIT-ARC read-only archive · snapshot: July 23, 2026

Fix OpenDNS for Ubuntu Dial-up user

3 posts · originally from https://geek.digit.in/community/threads/fix-opendns-for-ubuntu-dial-up-user.66247/

int86
int86 Original post #1
Aug 22, 2007 at 4:04 PM
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.
M
Aug 22, 2007 at 4:26 PM
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.
int86
int86 #3
Aug 23, 2007 at 1:44 AM
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