Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Feb 2006 23:03:41 +0200
From:      "Rostislav Krasny" <rosti.bsd@gmail.com>
To:        "Chuck Swiger" <cswiger@mac.com>
Cc:        Yar Tikhiy <yar@comp.chem.msu.su>, freebsd-stable@freebsd.org
Subject:   Re: SSH login takes very long time...sometimes
Message-ID:  <59e2ee810602271303k79692f1dqe96a3ac804318382@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Chuck Swiger <cswiger@mac.com> wrote:
> Yar Tikhiy wrote:
> [ ... ]
> > A similar effect was observed when a `domain' line was specified
> > in resolv.conf in place of `search'.
> >
> > Is there a real reason to retry with a different domain when the
> > nameserver doesn't respond at all?
>
> UDP is lossy, and it may take a nameserver longer to respond that the cli=
ent
> resolver library is willing to wait; the fact that a nameserver didn't an=
swer
> once isn't a sure sign that it won't answer other questions, or even that=
 it
> won't answer the same question if you just wait a minute.

Trying different domains isn't intended for fighting against UDP
packets loss. To fight against UDP packets loss you have RES_DFLRETRY
or "options attempts:N" retries of the same query. RES_DFLRETRY is
defined in resolv.h and "options attempts:N" is optional parameter of
/etc/resolv.conf.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?59e2ee810602271303k79692f1dqe96a3ac804318382>