From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 8GxdHbkBcmDMJAEAgWs5BA (envelope-from ) for ; Sat, 10 Apr 2021 21:51:21 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id SKk9F7kBcmCxfwAA1q6Kng (envelope-from ) for ; Sat, 10 Apr 2021 19:51:21 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id D1E1F1CB9F for ; Sat, 10 Apr 2021 21:51:20 +0200 (CEST) Received: from localhost ([::1]:43696 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lVJdX-00089M-Jo for larch@yhetil.org; Sat, 10 Apr 2021 15:51:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58188) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lVJcW-00088L-4Q for help-guix@gnu.org; Sat, 10 Apr 2021 15:50:16 -0400 Received: from knopi.disroot.org ([178.21.23.139]:51140) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lVJcT-0006Bi-LH for help-guix@gnu.org; Sat, 10 Apr 2021 15:50:15 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id D249450CE5; Sat, 10 Apr 2021 21:50:10 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Hpzh8c5BrR28; Sat, 10 Apr 2021 21:50:09 +0200 (CEST) References: <87ft09fowi.fsf@disroot.org> <87eefsg7fk.fsf@disroot.org> <87blaw1xhf.fsf@disroot.org> <87czv7f5v6.fsf@disroot.org> <87o8eqxix7.fsf@disroot.org> <878s5sfvcr.fsf@disroot.org> <871rbig63e.fsf@disroot.org> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1618084209; bh=6PrGIWP6gipYwEi/l+0c2uX0RFrQjjygsSbD1GtDJXI=; h=References:From:To:Cc:Subject:In-reply-to:Date; b=O5k1BMUh1d3IDTkEeKIsylDJmaKfaei+dZwUgoTM5ewbwTCGB9Yev0W1t7ITP9V0n wp4H9JmDE6+p6y8gBZ1A9eqO2uSARy4fRyGex9zi1DAHsWjAy2GUQc/o4l9EUtL8rN N8IURoW6aS3BcJuLRJinlfuB4V5oAPC4AvqKrHwFRN8ZkfnzNBa/AOyWX2Vb0NJnkk wWwhxbJ12e1EWCKbxyZS4dw1YUNj8YF8GrjoskVlRhIB8nuGndi99ZP66YN07dDVYk rfO+S/ihRoc1zuWGKFTtjVJQqdPAY+cTG+PAh9AjLIcHBk6n0OOYCRfWGTBi5H/hTZ MNUkDrTjNdoYg== From: Bone Baboon To: Vincent Legoll Cc: help-guix Subject: Re: Edits to `etc/resolv.conf` being overwritten In-reply-to: Date: Sat, 10 Apr 2021 15:50:08 -0400 Message-ID: <87wnt9ex73.fsf@disroot.org> Mime-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=178.21.23.139; envelope-from=bone.baboon@disroot.org; helo=knopi.disroot.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1618084281; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=bD1smTWLge6wPtIMCAHXPAwg6NLvj+Wp6rqKUZRQ5WA=; b=gY+S4m/lW6jTTa8UVuxoMIFwqMRfv8CvEbgdcSl/O/fYVAZC5/el8b1EyI/3Pt+pVz62dE ZwP/oSVqAozm9RwR7xxasiLvjyX/UB9GN8Kl/7iUdLwOQn+KAvNHyp4nFSIddpArfDLrZP LdfkNo1IxANFolfBlfsN+4T3TXIQXEAy54ASB07qNxkWdAuTtl8nj/jPOdAwNIPjm8sqPD n8IWOLFExQiS3v+uK9rPp7Z8Y0mpr3VKfdfI5tzdlawEXCUIZH7HphO9xiy6xOox3CMg8K GFFOnrgFvR5heEbiK8dyBZWXejjHmunILWzK8IqizcZODPEgIopfqFSTPPmySA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618084281; a=rsa-sha256; cv=none; b=m7VHARvBd51ahEAq18klLUeP92frPeNIwYbfk1rkr54DWMvujQ04gInxcqx/vFzfJsSkuM CYrTEp7cz8vUE+H/mU9mvZFewSGfuFpe/qzHqCoaA9kaBY9U1ooSFYILWnSg+Gj5fYeLGo hYUAOU5Dm62SXv31EgO6uhHxTr0CrpugZxV5Wob1JyHANWFF938+XA01wnVY6+Cnk2vbMl qs/ANogXnawbi4SuBJDqB8LWGaQzx8WYbxHZ/sT/YwtzyKXVq8wwb3WDS2NhbpLIi7dZ2a L8z6MtNhuQhJhY+U3Lh6rMGMlr0LNfSLfuk4IyG/4f2xClM/IK293oJDHOxTaw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=O5k1BMUh; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -2.64 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=O5k1BMUh; dmarc=pass (policy=quarantine) header.from=disroot.org; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: D1E1F1CB9F X-Spam-Score: -2.64 X-Migadu-Scanner: scn0.migadu.com X-TUID: RNBEqVlNNZ9O Vincent Legoll writes: > Have a look at the "LEASE REQUIREMENTS AND REQUESTS" > section from man dhclient.conf, you should be able to make > it *NOT* require "name-servers"... Thanks you for this helpful suggestion. After looking at the section you pointed out in man page for dhclient.conf I have come up with something that stops `sudo dhclient ` from overwriting `/etc/resolv.conf`. This approach also allows the system configuration to manage the contents of `/etc/resolv.conf` which is an improvement over using `chattr +i /etc/resolv.conf` which did not. Relevant sections of system configuration are: At the top level outside the `operating-system` definition. ``` (define dhclient-configuration "request subnet-mask, broadcast-address, time-offsets, routers, host-name; ") ``` Note: These were deliberately excluded from `request`: `domain-name`, `domain-name-servers`, `name-servers` and `domain-search`. A service in the services definition. ``` (simple-service 'dhclient-service etc-service-type `(("dhclient.conf", (plain-file "dhclient.conf" dhclient-configuration)))) ```