LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-28-2006, 02:03 PM   #1
matt_d
LQ Newbie
 
Registered: May 2006
Location: Monterey, CA
Distribution: Fedora
Posts: 3

Rep: Reputation: 0
Question 20+ sec delay establishing a connection.


Hello everyone,

Before I start here is my current network setup: I have a router that sits between the net and the lan. Obvously the router is the lan's gateway to the internet.

I have been working on this annoying problem for over 20 hours now! Ouch. Anyway, all of a sudden one of my linux boxes (FC4) would not resolv any domain names. It would not even connect to the gateway (which is acting as the dns server). I tried on five other computers, all worked just fine. I tried to ping the router as well as other systems on lan, but no traffic was going though.

While trying to figure out the problem, I would all of a sudden be able to ping other systems. And, it would finally resolve dns names, with a HUGE delay, about 20 seconds or so. Then, it would go right back not being able to see anything.

Now, it is back to resolving domain names and connecting with the outside world and lan. But there is still about a 20 second delay before it gets out anywhere. If I ping a lan address, it has a delay and if I ping an outside source it has a 20 second delay. There is a 20 second delay for any type of TCP traffic to any destination.

The network card in the box is brand new. I tried swapping in another one, but same results.

Any idea's why there is such a long delay? Can someone point me in the right direction to figure out what is wrong?

I did check the router and it is fine. All other systems connect to other lan systems and the outside world instantly.

Thanks,

-Matt
 
Old 05-28-2006, 02:11 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
Can you post the contents of /etc/resolv.conf and /etc/nsswitch.conf? Let's make sure the machine has the right DNS servers set up and is configured to use them.

Another useful tool is to strace the ping process so we can know exactly what it is hanging up on during that 20 seconds.
 
Old 05-28-2006, 02:24 PM   #3
matt_d
LQ Newbie
 
Registered: May 2006
Location: Monterey, CA
Distribution: Fedora
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks for your repy:

the dns server in resolv.conf is correct ... ip 10.0.1.1

Here are the files:

Quote:
[resolv.conf]
nameserver 10.0.1.1
Quote:
[nsswitch.conf]
passwd: files
shadow: files
group: files

#hosts: db files nisplus nis dns
hosts: files dns

# Example - obey only what nisplus tells us...
#services: nisplus [NOTFOUND=return] files
#networks: nisplus [NOTFOUND=return] files
#protocols: nisplus [NOTFOUND=return] files
#rpc: nisplus [NOTFOUND=return] files
#ethers: nisplus [NOTFOUND=return] files
#netmasks: nisplus [NOTFOUND=return] files

bootparams: nisplus [NOTFOUND=return] files

ethers: files
netmasks: files
networks: files
protocols: files
rpc: files
services: files

netgroup: files

publickey: nisplus

automount: files
aliases: files nisplus
 
Old 05-28-2006, 02:47 PM   #4
matt_d
LQ Newbie
 
Registered: May 2006
Location: Monterey, CA
Distribution: Fedora
Posts: 3

Original Poster
Rep: Reputation: 0
Found the problem ...

My DNS server, for some reason, is only giving slow responses to his ONE box.. Weird.. I switched to my backup dns server and it sped everything up.

Thanks for everyones help!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
RedHat AS 3, system time delay 3 sec everyday jingle_mj Linux - General 5 11-01-2005 11:48 PM
Establishing Internet Connection TtWEAK Linux - Networking 1 09-21-2005 03:15 AM
How to get rid of 30 sec delay "loading grub stage2"? deh6 Linux - General 13 09-07-2005 09:48 AM
Alsa on games makes the keyboard and mouse respond with a 15 sec. delay Ac1db0rN Linux - Hardware 4 03-24-2005 03:13 PM
Establishing an ethernet connection mikefoo Linux - Networking 2 11-07-2003 05:58 AM

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

All times are GMT -5. The time now is 02:14 PM.

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