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

Re: ssh hangs for 5 seconds for a particular machine



On 2015-04-09 00:09:08 +0200, Vincent Lefevre wrote:
> According to
> 
>   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=414569
>   "avahi-daemon: delay on resolving IP addresses when mdns is
>   specified in /etc/nsswitch.conf"
> 
> the 5-second delay shouldn't occur, as this bug was fixed with the
> changelog:
> 
>    * On new installations, do not add "mdns4" to nsswitch.conf, only
>      "mdns4_minimal [NOTFOUND=return]". This means we can't
>      perform reverse DNS using mDNS for addresses outside 169.254.x.x and
>      fe80::/10, but avoids a 5 second delay if such addresses do not
>      have a PTR record in DNS (Closes: #412714, #414569, #561622 for
>      new installations).
> 
> The "mdns4" in my /etc/nsswitch.conf file occurs after
> "mdns4_minimal [NOTFOUND=return]" so that I don't see why I get
> the delay.

Perhaps I misunderstood the exact behavior. I've applied the solution
suggested by:

  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=414569#49

i.e. adding "[NOTFOUND=return]" after "dns" in /etc/nsswitch.conf,
to have:

  hosts: files mdns4_minimal [NOTFOUND=return] dns [NOTFOUND=return] mdns4

-- 
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)


Reply to: