LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-12-2005, 01:54 AM   #1
Dayanandabv
LQ Newbie
 
Registered: Aug 2005
Location: India
Posts: 16

Rep: Reputation: 0
LAN is too slow when internet is down


hello all,

i have java application that try to connect a databases server.
when i am try connect to databases server it takes long time
when internet is down, but it works normal when internet is up.
why it should happen when i have LAN
help me to solve this problem.

thanks in advance
daya
 
Old 09-12-2005, 03:46 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Perhaps your app tries to use a dns server first to find the IP of the database server. Take a look at your /etc/host.conf and change
Code:
order bind, hosts
to
Code:
order hosts, bind
to use your /etc/hosts file before a dns server.
Also add an entry in /etc/hosts for your database server if not already exists.
 
Old 09-12-2005, 07:13 AM   #3
Dayanandabv
LQ Newbie
 
Registered: Aug 2005
Location: India
Posts: 16

Original Poster
Rep: Reputation: 0
thanks for replay,
i will do that what u said.

thanks
daya
 
Old 09-12-2005, 11:13 PM   #4
Dayanandabv
LQ Newbie
 
Registered: Aug 2005
Location: India
Posts: 16

Original Poster
Rep: Reputation: 0
hello,
thanks
its working fine,but the entry of server IP should be in client hosts file
and entry of client IP should be in server hosts file
thanks
daya
 
  


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
Slow Internet Connection when Connecting to Internet on Browsers lennysokol Linux - Networking 8 04-09-2011 04:29 PM
No Internet but LAN and VPN connect LAN work fine??? xavior SUSE / openSUSE 7 11-09-2005 01:14 PM
New Fedora Internet connection slow slow slow matrim Fedora 9 07-29-2005 01:39 PM
SLOW INTERNET REALTEK8139(Genius LAN GF100TXRII) GnaM Linux - Networking 17 02-12-2005 06:47 AM
slow internet connect and no lan connection jezza Linux - Newbie 1 02-12-2002 07:36 AM

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

All times are GMT -5. The time now is 11:47 AM.

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