Re: Very slow DNS

From: Mark South (marksouth_at_null.invalid)
Date: 02/03/05


Date: Thu, 03 Feb 2005 17:29:43 +0100

On Thu, 03 Feb 2005 16:43:45 +0100, Unforgiven wrote:

> Recently I've begun having problems with DNS being very slow under Linux, a
> DNS query could take up to 30 seconds. While Windows was unaffected, this
> problem was observed both under Fedora Core 3 and Knoppix 3.7.

Is this with IPv6 turned on or off? That 30 seconds delay seems VERY
familiar.

If it's IPv6, the problem is common with other distros, notably Mandrake
10.1

> Today I've been doing some digging using Ethereal, and it turns out that
> it's actually the DNS servers (or perhaps the network itself) at fault. They
> simply fail to respond to more than half the DNS queries. Under Windows,
> this problem is not as severe since it will retry a query every second if no
> response is received, and it will cache DNS records. Linux on the other hand
> only repeats the query about once every 5 seconds, which means if it fails
> twice, I have to wait 15 seconds. It also appears no or only limited caching
> is performed.

Is the half of the queries that are ignored made up of IPv6 packets, and
then they respond to the fallback IPv4 queries?

> So my question is: can I decrease the retry interval and/or set up a DNS
> cache?

Try turning off IPv6. It's worked like magic for a large number of us.

-- 
Mark South: World Citizen, Net Denizen


Relevant Pages

  • Re: Non-ASCII in DNS queries
    ... > Hmmm...a Windows machine will always send the DNS query as ... Windows Sockets is rather dumb in this ... > make these kinds of changes before sending the query. ... machine during the setup the actual DNS name will be as I ...
    (microsoft.public.win32.programmer.networks)
  • Re: DNS problem
    ... >>Something on your FreeBSD box is sending DNS queries to your Windows box ... >>and is timing out its query and closing the socket it used to send the ... >>query before the Windows box returns its response. ...
    (freebsd-stable)
  • Resolver issue
    ... I'm having some troubles with the Windows DNS resolver (the behaviour is the ... the resolver should first query the DNS ...
    (microsoft.public.win2000.dns)
  • Re: Win2K DNS cannot query BIND 9
    ... cannot query any of our domains. ... > coming into the firewall and I can see the queries logged in the BIND ... So are you saying the Windows DNS cannot get an answer to a referral to your ...
    (microsoft.public.win2000.dns)
  • Windows 2008 doing AAAA record lookups as well as A lookups even when it has no IPv6 enabled?
    ... When doing a DNS lookup from a Windows 2008 box it does a normal A record lookup first then it does an ... record lookup, even when IPv6 isn't enabled, doubling the name lookups the machine does for no good purpose and doubling the load on the DNS servers. ... If the host has only link-local or Teredo IPv6 addresses assigned, the DNS Client service sends a single query for A records. ...
    (microsoft.public.windows.server.general)