From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id poVQMybDbWC6HQEAgWs5BA (envelope-from ) for ; Wed, 07 Apr 2021 16:35:18 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id OJUkLCbDbWC2MgAA1q6Kng (envelope-from ) for ; Wed, 07 Apr 2021 14:35:18 +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 0C2941F84C for ; Wed, 7 Apr 2021 16:35:18 +0200 (CEST) Received: from localhost ([::1]:54856 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lU9H2-0007zS-Vk for larch@yhetil.org; Wed, 07 Apr 2021 10:35:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42780) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lU9Go-0007vo-Re for help-guix@gnu.org; Wed, 07 Apr 2021 10:35:02 -0400 Received: from knopi.disroot.org ([178.21.23.139]:47446) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lU9Gm-0006DB-6X for help-guix@gnu.org; Wed, 07 Apr 2021 10:35:02 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 89D5250D50; Wed, 7 Apr 2021 16:34:57 +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 UTF8SMTP id TD6jI4iX_0vM; Wed, 7 Apr 2021 16:34:50 +0200 (CEST) References: <87ft09fowi.fsf@disroot.org> <87eefsg7fk.fsf@disroot.org> <87blaw1xhf.fsf@disroot.org> <87czv7f5v6.fsf@disroot.org> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1617806083; bh=6bIc9ajPGLYSzV8Xq8x8UCbEuc4mkE4rP+l/7N+8L7Y=; h=References:From:To:Cc:Subject:In-reply-to:Date; b=QItJ8+VkKWC+n8oW2xT4ToEtaRaaQbQL6niJblRTWzbeHhg1zOcR3d3hwRMS0sdlH GSqYJBd6fKVAIP1bDQQTy2XfzTDL9wdsqX7XXQNtfhHS9UoRL/Nx1Q0rKL9dAYcoiR zqmL/mh/2dSd3onUFobVvuD58TpBFdvYDbELcpDw5vWJE+r4eynRZw5QBjdMmObDm7 r3Nm2eGsETWM4QovIhGz4u+a4Pb0q2KKtKVs16CQEBa3+upvkJCZfLArbIuiqX/JmU Qof89Bt7cbFG6vyyUg3Z3cUuUOsdWJiUB4MhmbgyVvo+/8LO3nGpGdspsGA1yx4F9B BlPnvPot/wsbA== From: Gary Johnson To: Bone Baboon Cc: help-guix@gnu.org Subject: Re: Edits to `etc/resolv.conf` being overwritten In-reply-to: <87czv7f5v6.fsf@disroot.org> Date: Wed, 07 Apr 2021 10:34:28 -0400 Message-ID: <87o8eqxix7.fsf@disroot.org> Mime-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=178.21.23.139; envelope-from=lambdatronic@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=1617806118; 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=PnIw28gSmO8IjlXIPcnodsfKBHBL8qFYVAOmP8tl/II=; b=DCYE9J53A4UtW/Nf5QopvDS/VV3k2Uc+JQ3s8jI/Ux6JwXucp0R4I2lBXLKlxvaFyT7X9v g4kytlrTChCVHMEqSjeu6cYNT9NLtLv9s2QeAl5jfFcf+LTFqbJoNHONNCUWD0cZhZkUoa 3eYZpResMFOuDw9ByB6ThPB68j/tCqUoKB0uF97svYTiOhYGg5m5FWU5qeb/5vOM7Y2iLm cd5g2HAiASeqngzrdzB1vrQORbkkB9AQmuQsZGq+yZmvlMnIf4c0P5yokYrNhrdddnoHvs SUKg39tV0XdB/2qx0L/aCCpISf9dRwz7RrV0zOSnIevQmpGEItR2ECNAd6gDCA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1617806118; a=rsa-sha256; cv=none; b=D7p6XwbqCh2vmOkvcleprOaB/+PqRgLffcaNEdLCpNdO714oSR9m+hbs9mCtPGLktHZG72 Lal8RNVlwkmYm1MLz7VxQYMogKxR4UoX+lagGh5SealiIFnRlVE7234S0Ens2KBTqctEsF NFE9uVNN77Jmd7IPnqfAMdlL/qQd6KnpMHNvjK2kbm8qjB83peddYUgDtxgLtxC+tWg6EO Y/4dkRkc8ra1CPITaOUPLZH5aS948fbynKOGdgend2ns8UFvIycHcqzW+ONJd7XoXu+iUn tEd5Ou4nH+uFbu4nMF1JpHJDBtwqIYUdJfHJxzR/HeUFphxBVTW+uvu8LgKBkw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=QItJ8+Vk; 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-Spam-Score: -2.64 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=QItJ8+Vk; 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: 0C2941F84C X-Spam-Score: -2.64 X-Migadu-Scanner: scn0.migadu.com X-TUID: ThKIMnDonTgk Bone Baboon writes: > Thank you for the explanation and detailed examples. > > I now have my system configuration providing the contents of > `/etc/resolv.conf` with a service. > > However the contents of `/etc/resolv.conf` is still being overwritten > with entries for my internet service provider's DNS. After some testing > it appears to be happening when I run this command `sudo dhclient > `. That's unfortunate to hear. Perhaps you could check out the network-manager-service-type? I believe it includes a parameter that lets you tell NetworkManager not to overwrite /etc/resolv.conf. The command-line interface for NetworkManager is called nmtui. This is what I use on my machine. > I also appreciate the `hosts-file` example you shared as I am thinking > about using `https://github.com/StevenBlack/hosts` as a block list. In > this case the contents of `my-host-aliases` would be very large. With > Guile how would I have the definition of `my-host-aliases` in it's own > file and import and use it in my system configuration? (use-modules (ice-9 rdelim)) (define my-host-aliases (with-input-from-file "/path/to/your/file" (lambda () (read-delimited "")))) Happy hacking, Gary -- GPG Key ID: 7BC158ED Use `gpg --search-keys lambdatronic' to find me Protect yourself from surveillance: https://emailselfdefense.fsf.org ======================================================================= () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments Why is HTML email a security nightmare? See https://useplaintext.email/ Please avoid sending me MS-Office attachments. See http://www.gnu.org/philosophy/no-word-attachments.html