From nobody Mon Sep 12 10:35:32 2022 X-Original-To: freebsd-wireless@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 4MR3073yZKz4c7sN for ; Mon, 12 Sep 2022 10:35:35 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from mx.catwhisker.org (mx.catwhisker.org [107.204.234.170]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4MR3064lDHz3fnV; Mon, 12 Sep 2022 10:35:34 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from albert.catwhisker.org (localhost [127.0.0.1]) by albert.catwhisker.org (8.16.1/8.15.2) with ESMTP id 28CAZXQJ011362; Mon, 12 Sep 2022 10:35:33 GMT (envelope-from david@albert.catwhisker.org) Received: (from david@localhost) by albert.catwhisker.org (8.16.1/8.16.1/Submit) id 28CAZWfs011361; Mon, 12 Sep 2022 03:35:32 -0700 (PDT) (envelope-from david) Date: Mon, 12 Sep 2022 03:35:32 -0700 From: David Wolfskill To: Graham Perrin Cc: FreeBSD wireless Subject: Re: Wi-Fi: netif restart wlan0: name resolution: resolvconf.conf(5) Message-ID: References: <7f07811f-503b-23ec-09a1-e563a4d39f32@freebsd.org> <0dd6932e-2222-8dc0-45be-7c22cd362524@freebsd.org> List-Id: Discussions List-Archive: https://lists.freebsd.org/archives/freebsd-wireless List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-wireless@freebsd.org X-BeenThere: freebsd-wireless@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="0vi5k6DCjvitwoVe" Content-Disposition: inline In-Reply-To: <0dd6932e-2222-8dc0-45be-7c22cd362524@freebsd.org> X-Rspamd-Queue-Id: 4MR3064lDHz3fnV X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of david@catwhisker.org designates 107.204.234.170 as permitted sender) smtp.mailfrom=david@catwhisker.org X-Spamd-Result: default: False [-5.40 / 15.00]; SIGNED_PGP(-2.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; R_SPF_ALLOW(-0.20)[+ip4:107.204.234.170:c]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; MLMMJ_DEST(0.00)[freebsd-wireless@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; ASN(0.00)[asn:7018, ipnet:107.192.0.0/12, country:US]; FROM_HAS_DN(0.00)[]; FREEFALL_USER(0.00)[david]; TO_DN_ALL(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DMARC_NA(0.00)[catwhisker.org]; RCVD_TLS_LAST(0.00)[] X-ThisMailContainsUnwantedMimeParts: N --0vi5k6DCjvitwoVe Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Sep 11, 2022 at 07:22:48PM +0100, Graham Perrin wrote: > On 11/09/2022 13:36, Graham Perrin wrote: > > % grep -v \#/etc/resolvconf.conf > > % >=20 > To clarify: the file exists, it comprises lines that are commented out=20 > (mostly, lines that are used only in static environments). >=20 > The name resolution problem was with DHCP. Right -- re-connecting (e.g., via "service netif restart wlan0") should be starting "dhclient wlan0". Because I (also) needed to re-populate my ipfw rules when I get a new DHCP lease, I cobbled up a /etc/dhclient-exit-hooks script; while I was there anyway, I put in some code at that point to make /etc/resolv.conf "sane" (by whatever passes for my standards). Peace, david --=20 David H. Wolfskill david@catwhisker.org "In my administration, I'm going to enforce all laws concerning the protection of classified information. No one will be above the law." -- D. Trump, August, 2016 See https://www.catwhisker.org/~david/publickey.gpg for my public key. --0vi5k6DCjvitwoVe Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iNUEARYKAH0WIQSr0Kzv+UJRY3wfOii0+6PfV4Ix1AUCYx8Lc18UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0QUJE MEFDRUZGOTQyNTE2MzdDMUYzQTI4QjRGQkEzREY1NzgyMzFENAAKCRC0+6PfV4Ix 1OkpAP976GEF+YbfcM/rAmTzT36lgrcGoo4PTRF3kTMKm+4D9AD+I5D1vrFI4j89 lzsPxn/ZituSIHTYIw25T0m6x9MufgA= =D45z -----END PGP SIGNATURE----- --0vi5k6DCjvitwoVe--