Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 06-17-2004, 06:59 PM   #1
Red Squirrel
Senior Member
Registered: Dec 2003
Distribution: Kubuntu 20.04 on workstation, CentOS 6.x on servers
Posts: 1,181

Rep: Reputation: 47
connecting to LAN server takes long when net is down

I have a local server that acts as mail (smtp and pop3) and I have fetchmail that checks every 15 minutes on the internet accounts if thereís mail. If thereís a connection problem, it just does not get no mail, and I can see in the log that it could not connect, which is fine and is actually a good way for me to know when the net started going down. My net hardly goes down but lately itís been going down allot, mostly problems at my end. Now fixed.

But when thereís a connection problem, it takes bloody ages to resolve the domain, why? How can the internet being down affect the server which is on the lan? It takes bloody ages to resolve, and also to connect, once itís connected then the rest is ok. Sometimes it will decide to do this when the internet is not down, but it does it all the time when itís down. Itís really annoying because if I decide to start working on a php script the web server is super slow because each connection takes so long. Is there a way to fix this? Iím running Red Hat 8.0. Could this be a DNS issue somehow? I canít see why though since the domain of the server is a samba hostname (like the computer name in windows) and not an actual domain.
Old 06-18-2004, 11:16 AM   #2
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 67
It will be a DNS issue. When you try to resolve the dns name you are probably connecting to a DNS server on the Internet which you can't reach as your connection is down.

The feasability of the two best solutions depend on the size of your lan:
For a small lan just specify the hostname of the server in the hosts files of the LAN machines.
If you have a relatively large network then you may see benefit in setting up a local DNS server.
Old 06-18-2004, 12:17 PM   #3
Red Squirrel
Senior Member
Registered: Dec 2003
Distribution: Kubuntu 20.04 on workstation, CentOS 6.x on servers
Posts: 1,181

Original Poster
Rep: Reputation: 47
Oh ok thanks, that's what I thought, since when I added it in my host file it is faster, but I just find it strange that it has to connect to the net to get a netbios name.

I've been wanting to setup a DNS server anyway but I don't know how, played with bind a bit but had no clue what I was doing. I'll start another topic as it's a completly different subject.


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
Connecting to local ProFTPD takes a long time Dee-ehn Linux - Networking 3 12-07-2004 12:58 AM
Booting up takes SO long! GreaseMonkey87 Linux - General 6 07-15-2004 02:28 AM
Problems connecting to server with debian net-install caged Debian 8 01-22-2004 08:24 PM
Connecting to the Net via WinNT Server tim-linux Linux - Networking 2 05-22-2003 11:46 PM
sendmail takes too long to come up ... t0dd Linux - Software 1 03-11-2002 02:59 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:20 AM.

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