On Tuesday 23 August 2005 08:58 am, Martell, Larry wrote:
> On Mon 8/22/2005 8:27 PM  Mike Adolf wrote:
> >On Monday 22 August 2005 07:40 pm, Stephen Kuhn wrote:
> >> On Tue, 23 Aug 2005 07:24, Mike Adolf tapped out:
> >> > My resolve.conf has:
> >> >
> >> > search <my domain name>
> >> > nameserver <ip of my router D514 DLink>
> >> >
> >> > Since I am a novice at netwroking, this doesn't tell me much>
> >> >
> >> > Thanks, Mike
> >>
> >> Mate, having only ONE nameserver in there ain't always a great idea.
> >> Add two more - just for giggles and grins. Try to have them
> >> geographically separated and preferably outSIDE of the US (if that's
> >> where ya live).
> >>
> >> Do something like:
> >> (get rid of the search bit - it's unnecessary)
> >>
> >> nameserver <ip of your router>
> >> nameserver 139.130.4.5
> >> nameserver 207.158.92.18
> >>
> >> ...save the file, then do: /sbin/service network restart
> >>
> >> Ya might find that you get a slightly snappier response to internet
> >> requests, eh?
> >
> > I tried as you suggested, but there must be a setting somewhere other
> > then resolv.conf.  After restarting the network, resolv.conf gets set
> > back to its original content??
>
> I have seen this when using DHCP - that's one of the reasons I don't use
> it. Switch to fixed IP's and then what you put in resolv.conf will stick.
>
> -larry

Try the below from the archives, since your problem is similiar to the one I 
had:

>Let me guess - you use DHCP to configure your network interface. As part
>of the normal DHCP process, it updates /etc/resolv.conf to the
> nameserver supplied by the DHCP server. To turn this off, you need to
> add "PEERDNS=no" to the config file for the interface. I am sure this
> can be done using MCC, but I usualy just edit the config file for the
> interface. It is probably /etc/sysconfig/system-scripts.ifcfg-eth0 in
> this case.
>
> You can find out more about the different config files and options in
> them by reading /usr/share/doc/initscripts-7.61.1 (Or what ever you
> version number is if you are not running 10.2...)
>
> Mikkel

and here is my /etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0
BOOTPROTO=dhcp
NETMASK=255.255.255.0
ONBOOT=yes
METRIC=10
MII_NOT_SUPPORTED=no
DHCP_HOSTNAME=cpollock
NEEDHOSTNAME=no
PEERDNS=no

and my resolv.conf:

nameserver 192.168.1.2
nameserver 207.69.188.185
nameserver 207.69.188.186
nameserver 207.69.188.187

You can do a test to see if its working by opening a terminal and entering:

$time host [host name] ie..$time host earthlink.net shows:

[EMAIL PROTECTED] chris]$ time host earthlink.net
earthlink.net has address 209.86.93.209
earthlink.net has address 209.86.93.210
earthlink.net has address 209.86.93.211
earthlink.net has address 209.86.93.201
earthlink.net has address 209.86.93.202
earthlink.net has address 209.86.93.203
earthlink.net has address 209.86.93.204
earthlink.net has address 209.86.93.205
earthlink.net has address 209.86.93.206
earthlink.net has address 209.86.93.207
earthlink.net has address 209.86.93.208
earthlink.net mail is handled by 10 mx3.earthlink.net.
earthlink.net mail is handled by 10 mx6.earthlink.net.
earthlink.net mail is handled by 5 mx1.earthlink.net.
earthlink.net mail is handled by 5 mx2.earthlink.net.
earthlink.net mail is handled by 5 mx4.earthlink.net.
earthlink.net mail is handled by 5 mx5.earthlink.net.
earthlink.net mail is handled by 5 mx7.earthlink.net.
earthlink.net mail is handled by 5 mx8.earthlink.net.
earthlink.net mail is handled by 5 mx9.earthlink.net.
earthlink.net mail is handled by 5 mxa.earthlink.net.
earthlink.net mail is handled by 5 mxb.earthlink.net.
earthlink.net mail is handled by 5 mxc.earthlink.net.
earthlink.net mail is handled by 5 mxd.earthlink.net.
earthlink.net mail is handled by 5 mxe.earthlink.net.
0.00user 0.00system 0:00.03elapsed 5%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (0major+313minor)pagefaults 0swaps
[EMAIL PROTECTED] chris]$ 

-- 
Chris
Registered Linux User 283774 http://counter.li.org
20:11:20 up 2 days, 7:55, 3 users, load average: 1.15, 0.97, 0.83
Mandriva Linux 10.1 Official, kernel 2.6.8.1-12mdk


____________________________________________________
Want to buy your Pack or Services from Mandriva? 
Go to http://store.mandriva.com
Join the Club : http://www.mandrivaclub.com
____________________________________________________

Reply via email to