Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > Networking & Wireless
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.

Networking & Wireless
Having problems getting connected to the internet or getting your wireless card to work? Ask here.

 
Thread Tools Display Modes
Old May 16th, 2007   #1
balajig81
First Cup of Ubuntu
 
Join Date: Apr 2007
Beans: 1
resolv.conf getting overwritten

I use PPPOEConf for configuring my internet connection. Once my internet connection is configured, the resolv.conf gets updated with proper DNS values but once i reboot my system the resolv.conf gets overwritten with 192.168.1.1 and i dont want my resolv.conf from being modified. I need the values which i configured using pppoeconf to be preserved even after the system is rebooted. How do i stop this resolv.conf from being overwritten ?.

Due to this problem everytime i am made to run pppoeconf after every reboot and configure my internet connection again.

Thanks
Regards,
Balaji
balajig81 is offline   Reply With Quote
Old May 16th, 2007   #2
heimo
Iced Blended Vanilla Crème Ubuntu
 
heimo's Avatar
 
Join Date: Apr 2005
Location: Finland
My beans are hidden!
Hardy Heron (Ubuntu Development)
Re: resolv.conf getting overwritten

Possible work-around, remove write permissions:
Code:
sudo chmod a-w /etc/resolv.conf
__________________
Docs, wiki, UDSF, tutorials, security
heimo is offline   Reply With Quote
Old May 16th, 2007   #3
girishv
A Carafe of Ubuntu
 
Join Date: Jun 2006
Location: Bengaluru
Beans: 119
Ubuntu 8.04 Hardy Heron
Re: resolv.conf getting overwritten

The resolv.conf file will be overwritten by dhclient.conf. Make the changes you want in the latter file and it will be preserved over reboots

I changed the following two lines in the file dhclient.conf

supersede domain-name "mydomain.com"
prepend domain-name-server xxx.xxx.xxx.1, xxx.xxx.xxx.2

Girish
__________________
Shiny aroma black VAIO running minty Elyssa
girishv is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:44 PM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry