Solved

resolv.conf keeps getting reset, erasing my nameserver ips with localhost info

Posted on 2004-03-23
5
2,069 Views
Last Modified: 2013-11-22
Hello:
I'm recently having a problem with all internet apps, in that the nameserver file /etc/resolv.conf keeps getting reset to:

search homeland.net
nameserver 192.168.1.1  (neither of which actually works, of course!)

instead of what I want it to be, which is:

nameserver 205.152.46.254
nameserver 205.152.144.235

I have a backup file that I keep having to replace the resolv.conf file in order to connect to things, but this is obviously very tedious...Any idea what could be causing this?
0
Comment
Question by:haldrik
  • 2
  • 2
5 Comments
 
LVL 61

Expert Comment

by:gheist
ID: 10664738
DHCP client software ...
0
 

Author Comment

by:haldrik
ID: 10678240
Thanks for the tip-- I guess what I wanted to know was how to correct this...I'm using whatever the default DHCP client was the default during installation.
0
 
LVL 61

Assisted Solution

by:gheist
gheist earned 30 total points
ID: 10679105
Then it adds nameserver as dhcp server says.
look at "man 5 dhclient.conf"
and then edit the described file to avoid overwriting resolv.conf.
resolver order is mentioned in /etc/nsswitch.conf btw
0
 

Accepted Solution

by:
mjoyner earned 70 total points
ID: 10826657
Put something along these lines into your /etc/dhclient.conf

put in your ethernet card name for rl0
put in your host-name
put in your DNS info instead of 127.0.0.1 (unless you are wanting to run named locally)

interface "rl0" {
        send host-name "yourhost.dynip.com";
        prepend domain-name-servers 127.0.0.1;
}
0
 

Author Comment

by:haldrik
ID: 10856085
Well, I seem to have solved this problem with a combination of the last comment, which I accepted in its entirety, and also by adjusting the /etc/nsswitch.conf file as suggested by gheist (the actual changes I looked up on another site). I am unable to reproduce the error at this point (even by undoing the fixes), so I cant only say that I believe that the point split that I did here is the fairest solution I could think of.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now