Re: Slow DNS lookups on CentOS6

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Tue, Sep 27, 2011 at 12:28 PM, Alfred von Campe <alfred@xxxxxxxxxxxxx> wrote:
> On Sep 27, 2011, at 11:29, John Hodrien wrote:
>
>> You probably want to do an strace -f host blah rather than a basic strace, or
>> I think you'll lose what's going on.
>
> Good point.  Using -f doesn't show a 3+ second gap, but I still have no idea
> why it's slow (3-5 seconds) compared to CentOS5, or why using ltrace causes
> host or nslookup to crash.  Can anybody else get ltrace to work with host?

The usual reason for a delay is that you have more than one nameserver
specified in resolv.conf and the first one tried is down or
unreachable so you time out and retry.  Try "dig @namserver hostname"
with each of the nameserver addresses to see if they are working or
just slow.

-- 
  Les Mikesell
    lesmikesell@xxxxxxxxx
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux