LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-21-2006, 06:07 AM   #1
c_anindya
LQ Newbie
 
Registered: Jun 2003
Location: Kolkata,India
Distribution: Ubuntu Breezy, Suse 10.0
Posts: 13

Rep: Reputation: 0
Angry DNS entries vanishes after login in Ubunutu 5.10


Hi,

I am using Ubuntu Breezy. My pc is connected to a switch(which is connected to a DSL modem) and gets IP from that. But, I want to keep two "fixed DNS server entry" in resolve.conf . But the problem is everytime I log in or do some system update thru aptget the DNS entries are gone! Could anybody help me in this regard?I tried Ubuntu IRC but didn't get much help there.

thanks,
ani
 
Old 02-22-2006, 09:02 PM   #2
born4linux
Senior Member
 
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
edit resolv.conf and set your desired entries.
to make it permanent, use chattr:

sudo chattr +i /etc/resolv.conf

that will make the file immutable - no update can be made unless
you disable it (via sudo chattr -i /etc/resolv.conf).

hth.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need a script to add DNS entries suhasingale Linux - Enterprise 2 03-08-2006 11:47 PM
Wildcard Entry and Regular Entries in DNS mr_fern Linux - Networking 0 08-06-2005 08:30 AM
Need help w/ making DNS entries w/ scripts imsam Linux - Networking 1 10-27-2004 08:09 AM
need help to set up caching only dns server to with bogus DNS entries ullas Linux - Networking 1 10-28-2003 01:54 PM
dhcp method to update DNS entries debPandra Linux - Distributions 0 01-10-2003 01:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration