LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Slow down connections with network utilities (https://www.linuxquestions.org/questions/linux-networking-3/slow-down-connections-with-network-utilities-165285/)

warned 04-02-2004 04:45 AM

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???

Half_Elf 04-02-2004 07:56 AM

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)

warned 04-02-2004 10:42 AM

Yes, /etc/resolv.conf has a line "domain domain.com" and another one "search domain.com"

Half_Elf 04-02-2004 03:48 PM

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? :)

warned 04-05-2004 05:00 AM

That does not solve the problem. I left only the line "search domain" and it is the same.

Half_Elf 04-05-2004 08:41 PM

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)


All times are GMT -5. The time now is 09:57 PM.