Date: Tue, 11 Oct 2022 14:41:56 -0400 From: Paul Procacci <pprocacci@gmail.com> To: Doug Denault <doug@safeport.com> Cc: freebsd-questions@freebsd.org Subject: Re: resolv.conf question Message-ID: <CAFbbPug83%2BxyjZoR%2BOZ1HqnzDCptmqLFbZ7vThgP9=O6QjF-KA@mail.gmail.com> In-Reply-To: <alpine.BSF.2.00.2210111300120.66282@bucksport.safeport.com> References: <alpine.BSF.2.00.2210111300120.66282@bucksport.safeport.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--0000000000003103ce05eac6a227 Content-Type: text/plain; charset="UTF-8" On Tue, Oct 11, 2022 at 1:03 PM Doug Denault <doug@safeport.com> wrote: > I have a resolve.conf specifying two name servers. The first one is in the > same data center, the second one is an Amazon virtual server. I had to > reboot a jail system. As Murphy would have it the local nameserver for > some > reason did not answer when the jails were started. > > I had assumed that if server one was not available the after the fail time > server two was tried. This only happened for the first jail. The linux > writeups (as I understand them) would seem to imply the second server > should be tried. > > So I tried to RTFM, /usr/src/contrib/ldns/resolver.c in this case. It is > almost certain that the system was up but bind did not respond. The source > is a bit above my pay grade but it did seem possible that if that was the > case, the second server was never tried. This is what actually happened. > > There were no other issues as each of the jails started fine with a manual > boot. Does anyone know if the timeout and/or retry setting offer a way > around this. > > _____ > Douglas Denault > http://www.safeport.com > doug@safeport.com > Voice: 301-217-9220 > Fax: 301-217-9277 > > Hi Doug, They are certainly tried in succession. If you couldn't resolve a given name, then something was certainly wrong. For testing, had you tried moving the second to the first? I'd bet the result would have been the same and there was instead something else going on. Thanks, ~Paul -- __________________ :(){ :|:& };: --0000000000003103ce05eac6a227 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div><div dir=3D"ltr"><br></div><br><div class=3D"gmail_qu= ote"><div dir=3D"ltr" class=3D"gmail_attr">On Tue, Oct 11, 2022 at 1:03 PM = Doug Denault <<a href=3D"mailto:doug@safeport.com">doug@safeport.com</a>= > wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px = 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I ha= ve a resolve.conf specifying two name servers. The first one is in the <br> same data center, the second one is an Amazon virtual server. I had to <br> reboot a jail system. As Murphy would have it the local nameserver for some= <br> reason did not answer when the jails were started.<br> <br> I had assumed that if server one was not available the after the fail time = <br> server two was tried. This only happened for the first jail. The linux <br> writeups (as I understand them) would seem to imply the second server <br> should be tried.<br> <br> So I tried to RTFM, /usr/src/contrib/ldns/resolver.c in this case. It is <b= r> almost certain that the system was up but bind did not respond. The source = <br> is a bit above my pay grade but it did seem possible that if that was the <= br> case, the second server was never tried. This is what actually happened.<br= > <br> There were no other issues as each of the jails started fine with a manual = <br> boot. Does anyone know if the timeout and/or retry setting offer a way <br> around this.<br> <br> _____<br> Douglas Denault<br> <a href=3D"http://www.safeport.com" rel=3D"noreferrer" target=3D"_blank">ht= tp://www.safeport.com</a><br> <a href=3D"mailto:doug@safeport.com" target=3D"_blank">doug@safeport.com</a= ><br> Voice: 301-217-9220<br> =C2=A0 =C2=A0Fax: 301-217-9277<br> <br> </blockquote></div><br clear=3D"all"></div><div>Hi Doug,</div><div><br></di= v><div>They are certainly tried in succession.</div><div><br></div><div>If = you couldn't resolve a given name, then something was certainly wrong.<= br></div><div>For testing, had you tried moving the second to the first?</d= iv><div><br></div><div>I'd bet the result would have been the same and = there was instead something else going on.</div><div><br></div><div>Thanks,= </div><div>~Paul<br></div><div><br></div><div>-- <br><div dir=3D"ltr" class= =3D"gmail_signature">__________________<br><br>:(){ :|:& };:</div></div= ></div> --0000000000003103ce05eac6a227--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFbbPug83%2BxyjZoR%2BOZ1HqnzDCptmqLFbZ7vThgP9=O6QjF-KA>