[NTLUG:Discuss] Slow when Connected to Net

Cameron, Thomas Thomas.Cameron at bankofamerica.com
Wed Jun 16 13:00:04 CDT 2004


Or you could do:

grep -v 192.168 /etc/resolv.conf > zzz && cat zzz > /etc/resolv.conf && rm zzz

Or even:

perl -pi.orig -e 's/nameserver 192.168.1.254//'

But that would leave a blank line in your resolv.conf (cosmetic issue only).

I love F/OSS - always more than one way to skin a cat...

Cheers,
--
Thomas Cameron, RHCE, CNE, MCSE, MCT
Assistant Vice President
Linux Design and Engineering
Bank of America
(972) 997-9641

The opinions expressed in this message are mine alone and do not necessarily reflect the opinions of my employer, Bank of America. 

> -----Original Message-----
> From: discuss-bounces at ntlug.org [mailto:discuss-bounces at ntlug.org]On
> Behalf Of Cameron, Thomas
> Sent: Wednesday, June 16, 2004 12:51 PM
> To: NTLUG Discussion List
> Subject: RE: [NTLUG:Discuss] Slow when Connected to Net
> 
> 
> Use your favorite text editor and just delete that line.
> 
> For vi you would do this:
> 
> vi /etc/resolv.conf
> 
> This would open the file in vi.  Use your keyboard arrow keys 
> to navigate to that first line and type "dd" with out the 
> quotes.  This will delete that whole line.  The hit :wq 
> (that's colon, w, q).  This writes the file then quits.
> 
> There are many ways to do this, and lots of editors to do it 
> with.  I happen to use vi.
> 
> Thomas Cameron, RHCE, CNE, MCSE, MCT
> Assistant Vice President
> Linux Design and Engineering
> Bank of America
> (972) 997-9641
> 
> > -----Original Message-----
> > From: discuss-bounces at ntlug.org [mailto:discuss-bounces at ntlug.org]On
> > Behalf Of Andrew Brown
> > Sent: Wednesday, June 16, 2004 12:33 PM
> > To: NTLUG Discussion List
> > Subject: Re: [NTLUG:Discuss] Slow when Connected to Net
> > 
> > 
> > Bingo, it is the first one and I remember this IP from the 
> > set up of the 
> > Router. OK stupid follow up as I am new to Linux. How do I go 
> > about getting 
> > the first IP out of the nameserver setup? 
> > 
> > Thanks again for the help!
> > 
> > On Wednesday 16 June 2004 11:32 am, Cameron, Thomas wrote:
> > > > nameserver 192.168.1.254
> > > > nameserver 204.127.202.4
> > > > nameserver 216.148.227.68
> > >
> > > I am betting that 192.168.1.254 was assigned by the router 
> > that removed.
> > >
> > > Try this:
> > >
> > > host www.google.com 192.168.1.254
> > > host www.google.com 204.127.202.4
> > > host www.google.com 216.148.227.68
> > >
> > > I bet the first one fails.  I would take the first line out 
> > of resolv.conf.
> > >
> > > --
> > > Thomas Cameron, RHCE, CNE, MCSE, MCT
> > > Assistant Vice President
> > > Linux Design and Engineering
> > > Bank of America
> > > (972) 997-9641
> > >
> > > The opinions expressed in this message are mine alone and do not
> > > necessarily reflect the opinions of my employer, Bank of America.
> > >
> > > _______________________________________________
> > > https://ntlug.org/mailman/listinfo/discuss
> > 
> > 
> > _______________________________________________
> > https://ntlug.org/mailman/listinfo/discuss
> > 
> 
> _______________________________________________
> https://ntlug.org/mailman/listinfo/discuss
> 



More information about the Discuss mailing list