From nobody Tue Oct 11 17:02:58 2022 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Mn2Cs1Czlz4dyls for ; Tue, 11 Oct 2022 17:03:05 +0000 (UTC) (envelope-from doug@safeport.com) Received: from ogunquit.safeport.com (ogunquit.safeport.com [147.160.157.18]) by mx1.freebsd.org (Postfix) with ESMTP id 4Mn2Cr2jVFz45sj for ; Tue, 11 Oct 2022 17:03:04 +0000 (UTC) (envelope-from doug@safeport.com) Received: from bucksport.safeport.com (bucksport.safeport.com [147.160.157.15]) by ogunquit.safeport.com (Postfix) with ESMTP id 5B4548289 for ; Tue, 11 Oct 2022 13:02:58 -0400 (EDT) Date: Tue, 11 Oct 2022 13:02:58 -0400 (EDT) From: Doug Denault To: freebsd-questions@FreeBSD.ORG Subject: resolv.conf question Message-ID: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Rspamd-Queue-Id: 4Mn2Cr2jVFz45sj X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of doug@safeport.com designates 147.160.157.18 as permitted sender) smtp.mailfrom=doug@safeport.com X-Spamd-Result: default: False [-3.20 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; R_SPF_ALLOW(-0.20)[+ip4:147.160.157.18:c]; RCVD_NO_TLS_LAST(0.10)[]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; DMARC_NA(0.00)[safeport.com]; MLMMJ_DEST(0.00)[freebsd-questions@FreeBSD.ORG]; R_DKIM_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; ARC_NA(0.00)[]; ASN(0.00)[asn:6405, ipnet:147.160.157.0/24, country:US]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; TO_DN_NONE(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-ThisMailContainsUnwantedMimeParts: N 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