10.1 - resolving hostnames slow for the first time



Hi,

I have encountered a very strange problem with 10.1 on my laptop. Googling
unfortunately revealed nothing, so I ask for your help.

I have moved to a new flat a week ago, got ADSL with 2Wire 1800HG all-in-one
box (modem+router+wireless AP). Since then, I noticed a massive network
slowdown (not in terms of transfer, which is exactly as my ADSL connection
should be, but in an overall time of i.e. opening a website) - a website
takes like 2 minutes to open (with Firefox spending most of its time
"looking up host...", and stops on the hostname of the website, the
adserver, the imageserver, google adsense, whatever is called from the
site), 30s or something like this when estabilishing SSH connection etc.
Sometimes it even takes so long to resolve something, that I get "temporary
failure in address resolution", "unknown host foo" etc.

The problem is that the system seems to take forever to resolve an IP from
the hostname, then the result gets cached and the hostname is resolved
quickly for some time, then it starts to be painfully slow again.

For example, this is very fast:

macondo:~ # telnet xxx.xxx.xxx.xxx 22
(immediate response)
Trying xxx.xxx.xxx.xxx...
Connected to xxx.xxx.xxx.xxx
Escape character is '^]'.
SSH-2.0-OpenSSH_4.3

But this is not:

macondo:~ # telnet some.hostname 22
(about 30 seconds pass...)
Trying xxx.xxx.xxx.xxx...
Connected to xxx.xxx.xxx.xxx
Escape character is '^]'.
SSH-2.0-OpenSSH_4.3

What's interesting, when I disconnect and try connecting to the same
hostname again, it's resolved immediately - I assume that the result is
cached for some time locally. After some time the cache is emptied and it
takes forever again.

Unfortunately, I have to assume that this is a SUSE issue, since I have no
such trouble in Windows on the same machine. The router has some diagnostic
tools accessible via WWW interface, including ping and traceroute and it
seems that pinging a hostname from there resolves its name immediately.
Also, my problem happens in SUSE in both wired (SiS900) and wireless
(Broadcom 4318, ndiswrapper, WPA-PSK) case, so I doubt it's the network
card. The system is a pretty standard 10.1, an ordinary desktop
installation with KDE + some development tools. All of it makes me think
that something about the network in my SUSE laptop is either misconfigured
(but worked fine with my old flat with a different router) or buggy.

I would appreciate any ideas and be happy to provide more information (if
anyone points me what to look for).

Thanks in advance,

jkb



--
"'W zasadzie', powiedział kiedyś Koslowski, 'każdy człowiek jest,
subiektywnie rzecz biorąc, nieśmiertelny. O tym, że ktoś umarł, wiedzą
tylko ci, którzy go przeżyli. W każdym razie uważam za rzecz diabelnie
trudną przekonać kogoś, że nie żyje, jeśli on jest nieżywy'." (M. Augustin)
.



Relevant Pages

  • Re: Is there a path around VPN?
    ... On the corp VPN I can use remote desktop to hop over to another ... I suspect it is trying to resolve on the corp DNS, ... I use a laptop for my VPN connection. ...
    (alt.internet.wireless)
  • Weird problem with Fedora Core 3
    ... However I just encountered a problem I'm stumped on how to resolve. ... I shutdown my laptop and rebooted my linksys router and Westell DSL ... I get the following message "Connection was refused when attempting to ...
    (linux.redhat.misc)
  • Re: DVD drive disappeared and cant uninstall
    ... I'd say that you do have some kind of hardware connection issue. ... I have a laptop - is there any way I can check the connection or do I just have to junk the laptop? ... This time the Upper and LowerFilter registry keys are no longer there. ... I've spent hours trying to resolve it and I'm desperate - any help much appreciated. ...
    (microsoft.public.windowsxp.hardware)
  • Re: wireless connection and X session
    ... laptop and wireless is working fine but if I launch the wireless ... wireless connection is not lost...). ... using DHCP to multiple access points why are you defining a hostname? ...
    (Fedora)
  • Re: Resolving DNS names from extended stored procedures
    ... I have no problems doing gethostbyname to resolve the hostname back to an IP ... > hostname from within the stored procedure using DNS. ... > connection to a specified port and sends XML over the connection, ...
    (microsoft.public.sqlserver.server)