LinuxQuestions.org
Review your favorite Linux distribution.
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 04-02-2004, 05:45 AM   #1
warned
LQ Newbie
 
Registered: Oct 2003
Distribution: Mandrake and RH
Posts: 22

Rep: Reputation: 15
Question Slow down connections with network utilities


Hi every body!!

I have the following problem: network connections are only very speedy with the FQDN. If I use the machine short name the connection is slow, i.e.:

ssh machine.domain.com -> fast
ssh machine -> slow

but

ping machine -> fast

/etc/resolv.conf, /etc/nsswitch.conf, /etc/hosts, /etc/host.conf are correctly configured.

/etc/resolv.conf has propertly configured "nameserver",
/etc/nsswitch.conf hast "hosts: db files dns nisplus",
/etc/hosts has configured short and FQDN of "machine",
/etc/host.conf has "order hosts, bind"

Why is so slow the "short name" connection???
 
Old 04-02-2004, 08:56 AM   #2
Half_Elf
Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 45
can you show us your resolv.conf files?
there's a "search" line in it, that should be like "domain.com", this line tell your box what to add to the "short" when trying to locate an incomplete hostname (well I think that's the purpose lol)
 
Old 04-02-2004, 11:42 AM   #3
warned
LQ Newbie
 
Registered: Oct 2003
Distribution: Mandrake and RH
Posts: 22

Original Poster
Rep: Reputation: 15
Yes, /etc/resolv.conf has a line "domain domain.com" and another one "search domain.com"
 
Old 04-02-2004, 04:48 PM   #4
Half_Elf
Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 45
aye I don't think you should have both of these lines... domain is the old standard I believe, it is not the same.
Maybe you should try to remove one?
 
Old 04-05-2004, 06:00 AM   #5
warned
LQ Newbie
 
Registered: Oct 2003
Distribution: Mandrake and RH
Posts: 22

Original Poster
Rep: Reputation: 15
That does not solve the problem. I left only the line "search domain" and it is the same.
 
Old 04-05-2004, 09:41 PM   #6
Half_Elf
Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 45
eeeh what's your network architecture?
Are you using a router, a NAT or something like this? often, slow connection is due to fragmentation.. I don't see how it could happen only with long host name, but... setting your MTU lower than 1500 might help...

Also, is your "/etc/hosts" file correct? maybe there's some syntax mistakes in it slowing down the process (or maybe the file is damn too long).
Anything that can lead us on the right way in the log maybe (client and dns server, if you have access to it)
 
  


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 connections with external modem its_toby Linux - Hardware 0 10-19-2005 06:06 PM
Network connections slow over time wojie Linux - Networking 1 03-10-2005 06:32 AM
Slow proftpd Connections carmstrong Linux - Software 3 05-22-2004 08:02 AM
Slow SMTP and POP3 connections Kaj Linux - Software 1 03-15-2004 11:59 AM
network utilities jonnyjonjon Linux - Networking 1 05-04-2003 04:57 PM


All times are GMT -5. The time now is 07:19 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration