Re: Slow DNS Lookup - Debian
On Mon, 05 Dec 2005 10:25:28 -0800, mrnull wrote:
> I've Google'd this problem plenty of times, but haven't seen many
> current posts on the subject. Here's the deal:
>
> A friend and I recently installed Linux on machines in our home
> networks. I used Debian Testing, and he used Linspire (Debian based.)
> We're now noticing that web pages take a VERY long time to load, the
> DNS lookup inparticular. Even weirder, Windows XP PC's on the same
> network load pages instantaneously!
>
> I could be loosing my mind, but I swear it wasn't this way when I
> loaded Debian onto this same PC about a year ago. The only advancement
> I can imagine would be IPv6, which I've uninstalled from the Kernel
> with "modconf"
>
> My /etc/resolv.conf is as follows:
> search ahvl.nc.charter.com
> nameserver 192.168.1.10
>
> The nameserver being my router of course. Anyway, any help is
> appreciated. We've been trying to figure this out for a long time now.
>
> - Henson
There are two issues which affect DNS lookups. One is - disable IPV6. The
second is that some DNS servers seem to miss the first couple of requests
from Linux machines. The default timeout is five seconds, so this
frequently results in about a 10-12 second time lag (the IPV6 lag can be
about 30 seconds). To fix this issue, add
option timeout:1
to the /etc/resolv.conf file.
|