From nobody Tue Oct 18 20:55:23 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 4MsR8J1zp2z4fWLJ for ; Tue, 18 Oct 2022 21:00:16 +0000 (UTC) (envelope-from naddy@mips.inka.de) Received: from mail.inka.de (mail.inka.de [IPv6:2a04:c9c7:0:1073:217:a4ff:fe3b:e77c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4MsR8H3l8lz3wrM for ; Tue, 18 Oct 2022 21:00:15 +0000 (UTC) (envelope-from naddy@mips.inka.de) Received: from mips.inka.de (naddy@[127.0.0.1]) by mail.inka.de with uucp (rmailwrap 0.5) id 1oktgy-0015G6-LW; Tue, 18 Oct 2022 23:00:04 +0200 Received: from lorvorc.mips.inka.de (localhost [127.0.0.1]) by lorvorc.mips.inka.de (8.16.1/8.16.1) with ESMTP id 29IKtNa5072221; Tue, 18 Oct 2022 22:55:23 +0200 (CEST) (envelope-from naddy@lorvorc.mips.inka.de) Received: (from naddy@localhost) by lorvorc.mips.inka.de (8.16.1/8.16.1/Submit) id 29IKtNvZ072220; Tue, 18 Oct 2022 22:55:23 +0200 (CEST) (envelope-from naddy) Date: Tue, 18 Oct 2022 22:55:23 +0200 From: Christian Weisgerber To: Bob Proulx Cc: freebsd-questions@freebsd.org Subject: Re: resolv.conf question Message-ID: References: <20221012185254621820516@bob.proulx.com> <7F000833-031D-41D9-8C49-F999F1A9AD73@gushi.org> <20221013102456085799804@bob.proulx.com> 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; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221013102456085799804@bob.proulx.com> X-Rspamd-Queue-Id: 4MsR8H3l8lz3wrM X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of naddy@mips.inka.de has no SPF policy when checking 2a04:c9c7:0:1073:217:a4ff:fe3b:e77c) smtp.mailfrom=naddy@mips.inka.de X-Spamd-Result: default: False [-2.10 / 15.00]; AUTH_NA(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; MIME_GOOD(-0.10)[text/plain]; FROM_EQ_ENVFROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org]; MIME_TRACE(0.00)[0:+]; R_SPF_NA(0.00)[no SPF record]; RCPT_COUNT_TWO(0.00)[2]; R_DKIM_NA(0.00)[]; ARC_NA(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; ASN(0.00)[asn:202113, ipnet:2a04:c9c0::/29, country:DE]; FROM_HAS_DN(0.00)[]; FREEFALL_USER(0.00)[naddy]; MID_RHS_MATCH_FROMTLD(0.00)[]; TO_DN_SOME(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; DMARC_NA(0.00)[inka.de]; RCVD_TLS_LAST(0.00)[] X-ThisMailContainsUnwantedMimeParts: N Bob Proulx: > And also note that the resolver only reads resolv.conf at start up > time. Meaning that if changes are made any programs using it must be > restarted. Actually, this was improved seven years ago. I'll just quote from resolver(5): reload-period:n The resolver checks the modification time of /etc/resolv.conf every n seconds. If /etc/resolv.conf has changed, it is automatically reloaded. The default for n is two seconds. Setting it to zero disables the file check. -- Christian "naddy" Weisgerber naddy@mips.inka.de