Re: Slow login to system without internet connection

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



On Tue, Nov 20, 2012 at 2:45 PM, Ljubomir Ljubojevic <office@xxxxxxxx> wrote:
>>>
>> Most server apps will do a reverse-DNS lookup, if only to log the name
>> for the connection, some will try an ident query for the user at the
>> other end of the socket.   A 30+ second delay is a pretty sure sign
>> that one or more of the DNS servers in your resolv.conf did not
>> respond.  Running a local nameserver with a dummy local domain is one
>> way to fix it, but just putting all your local systems in the
>> /etc/hosts file will work too.
>>
>
> OK, that is what crossed my mind, but what I was hopping for is some
> elegant solution that would decrease the timeout. My server already has
> DNS server running and "nameserver 127.0.0.1" as first in /etc/resolv.conf.

OK, but does it answer for your local network or do those queries
float up to the roots to get an answer?

> So the question is: "is there a setting that will reduce that DNS
> timeout for all running services, maybe like a ping-watchdog that would
> recognize the problem and skip the reverse-DNS lookup if DNS servers are
> not reachable?"

How about adding zone files for the things that belong to you?   I've
always been surprised that distributions that contain name servers
don't include dummy reverse zones for all the private  IP ranges.  It
must make a huge load on the DNS infrastructure when everyone passes
those queries upstream where they will always fail (but quickly...).
You'd get the same answer even faster if you had an empty zone file
yourself.

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