From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9DB9C158020 for ; Wed, 19 Oct 2022 09:22:28 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9FCFDE08EC; Wed, 19 Oct 2022 09:22:22 +0000 (UTC) Received: from mail-gw.thundermail.uk (mail-gw.thundermail.uk [149.255.60.71]) (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) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 485F7E0893 for ; Wed, 19 Oct 2022 09:22:21 +0000 (UTC) Received: from mailgw01.thundermail.uk (uwhmailfgw01.unlimited.uk.net [149.255.60.67]) by mail-gw.thundermail.uk (Postfix) with ESMTPS id 1AB316000536 for ; Wed, 19 Oct 2022 10:22:20 +0100 (BST) X-ASG-Debug-ID: 1666171340-0554133dcf310b20001-LfjuLa Received: from mailclean01.thundermail.uk (mailclean01.thundermail.uk [149.255.60.66]) by mailgw01.thundermail.uk with ESMTP id CAeejNbjMiYDjn65 for ; Wed, 19 Oct 2022 10:22:20 +0100 (BST) X-Barracuda-Envelope-From: confabulate@kintzios.com X-Barracuda-Effective-Source-IP: mailclean01.thundermail.uk[149.255.60.66] X-Barracuda-Apparent-Source-IP: 149.255.60.66 Received: from cloud220.unlimitedwebhosting.co.uk (cloud220.unlimitedwebhosting.co.uk [149.255.60.183]) by mailclean01.thundermail.uk (Postfix) with ESMTPS id 4B70743F23 for ; Wed, 19 Oct 2022 10:22:06 +0100 (BST) Received: from lenovo.localdomain (230.3.169.217.in-addr.arpa [217.169.3.230]) by cloud220.unlimitedwebhosting.co.uk (Postfix) with ESMTPSA id BF916CEAE50 for ; Wed, 19 Oct 2022 10:22:05 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kintzios.com; s=default; t=1666171326; bh=rWvG/nawakJfGn+deG29kyg3hbQ3PE9CfRNdEit6Duc=; h=From:To:Subject; b=kIRsRO8tfuozkZ5pm3QSMzCcp+PP6M+k0O1/FW0YE+BZldWdC4zIggOMSMZ2oLEf1 zYaIfwKIOco8gM078fN/dTwD1mmyucHOKK24dNg84LZs56bBqGLaAXw3DOXNjiToAO IwKyGAiiB4nwHqZ6W7nxxi8k1fWRmdxalYxnq918= From: Michael To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Re: resolv.conf full of old info Date: Wed, 19 Oct 2022 10:22:05 +0100 X-ASG-Orig-Subj: Re: [gentoo-user] Re: resolv.conf full of old info Message-ID: <5871429.lOV4Wx5bFT@lenovo.localdomain> In-Reply-To: References: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart4778758.31r3eYUQgx"; micalg="pgp-sha256"; protocol="application/pgp-signature" X-PPP-Message-ID: <166617132603.2469116.11465579222410319229@cloud220.unlimitedwebhosting.co.uk> X-PPP-Vhost: kintzios.com X-Spam-Status: No, score=-0.2 required=8.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=disabled version=3.4.2 X-Spam-Report: * 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record * -0.0 SPF_PASS SPF: sender matches SPF record * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid * -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from * envelope-from domain * -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from * author's domain * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mailclean01.thundermail.uk X-Barracuda-Connect: mailclean01.thundermail.uk[149.255.60.66] X-Barracuda-Start-Time: 1666171340 X-Barracuda-URL: https://149.255.60.67:443/cgi-mod/mark.cgi X-ASG-Orig-Subj: Re: [gentoo-user] Re: resolv.conf full of old info X-Virus-Scanned: by bsmtpd at thundermail.uk X-Barracuda-Scan-Msg-Size: 1163 X-Barracuda-BRTS-Status: 1 X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.0 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.101526 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Archives-Salt: 4049b2b0-e706-4797-a740-00e1e4733e1e X-Archives-Hash: 9aeeb5dec2b08f0a61d458468bd4053e --nextPart4778758.31r3eYUQgx Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8"; protected-headers="v1" From: Michael To: gentoo-user@lists.gentoo.org Reply-To: confabulate@kintzios.com Subject: Re: [gentoo-user] Re: resolv.conf full of old info Date: Wed, 19 Oct 2022 10:22:05 +0100 Message-ID: <5871429.lOV4Wx5bFT@lenovo.localdomain> In-Reply-To: References: MIME-Version: 1.0 On Wednesday, 19 October 2022 01:00:31 BST Grant Edwards wrote: > On 2022-10-18, Grant Edwards wrote: > > I've noticed that /etc/resolv.conf seems to accumulate obsolete, > > useless info as my laptop moves from one network to another. It looks > > like dhcpcd adds stuff when a connection comes up, but never removes > > it when the connection goes down. > > This appears to be caused by the "persistent" option in dhcpcd.conf, > which is set by default. I commented it out, and now resolv.conf > behaves rationally: it only contains info for network connections that > are up. > > Why would dhcpcd have the persistent option enabled by default? > > -- > Grant I think because this causes less breakage in those cases where netmount, remote syslog-ng, SSH clients, or root mounted NFS is in play? This is what the man page says about it: "... dhcpcd normally de-configures the interface and configuration when it exits. Sometimes, this isn't desirable if, for example, you have root mounted over NFS or SSH clients connect to this host and they need to be notified of the host shutting down." --nextPart4778758.31r3eYUQgx Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEXqhvaVh2ERicA8Ceseqq9sKVZxkFAmNPwb0ACgkQseqq9sKV ZxnR6g/+MMXTDU0gyU4BJW6Ow7b6SNw10tUVhH4YAMaA5cF4mguO1AQviRbvvos5 VZfJFz/53kMRPs6NWQTnWlqRxh3fJgk95oU30neAWH37Px3EnrBB0aBruJ/XphWn 7wP1Pjl0+q9Pxfx1eTFt/H+v4ofzTVeCnjPPOJnqTVQ8AVSwxxqmPwIY2nBC8cj7 nLuAwhHvYpPRkP2ggthtmrXHxpl5fZv4GV2UfpafWN87179hd213Hz4Sqzw3cXIp LqKCoN7sb3joIbQ/+DZ9SUaieXKygpMmNNLMVHS4rvf5zUCpMK7TkPJ0xV8HBFqq YARjpGT8zw3KBGZRS3EdxrzWN4WpZSp2nCHgD5v8LGYnminmwX9S8Jiuz5+G5EpV fgsaBfVs/5UviilSMq2rHhMlbqMbUxblHios5GrbuR1W3k7P+YeLQ8vsEy+clfxy 7LrxaGFOC6PxiWXZPRUQeNPm08CiA3Q6A1sbCmi9hGX6fCCSUhVi7VHdG82s02/z 3W/uyh1/t4uF8WTVEXfZsIyYy6bXjJYH6v1n0OxsPi+dy8ap+BNPAjOGkvWLC+Qf 9cWogEqnWn0BVcWDK2cfDxJs+KrBXMd7fmWM3VO2R5QjEHzOiDTain/R5wSYR00W H7Zw6u6gV87tVhXQcMFauca6O/HUcQCAE1xbO9xeWxQ51EEr51Y= =lRsY -----END PGP SIGNATURE----- --nextPart4778758.31r3eYUQgx--