From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id eP/NLZKrtWNjxAAAbAwnHQ (envelope-from ) for ; Wed, 04 Jan 2023 17:38:42 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id GP3QLZKrtWNUeQAA9RJhRA (envelope-from ) for ; Wed, 04 Jan 2023 17:38:42 +0100 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 6ED6B380FD for ; Wed, 4 Jan 2023 17:38:42 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pD6mG-0003VO-2O; Wed, 04 Jan 2023 11:38:08 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pD6mB-0003SS-J2 for help-guix@gnu.org; Wed, 04 Jan 2023 11:38:03 -0500 Received: from knopi.disroot.org ([178.21.23.139]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pD6m8-0005sn-UE for help-guix@gnu.org; Wed, 04 Jan 2023 11:38:03 -0500 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id E1D5040B2A; Wed, 4 Jan 2023 17:37:55 +0100 (CET) X-Virus-Scanned: SPAM Filter 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 H2zMLz0M9-Jc; Wed, 4 Jan 2023 17:37:54 +0100 (CET) References: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1672850274; bh=9RYi6FM5IpHNGvErzlSha+EW1T8bmvRLhNVx6B6XcsU=; h=References:Date:From:To:Cc:Subject:In-reply-to; b=fBUlT0VoAJrxPtVEgYRduhWamczf149kqQUVShrSehMKxD9UTYJ96Qq0vvsd57evj mZM3bsMmTOXrcEqKK3arIzGmAH3eJfMXtphZdBz+6lml+4ev33uSytpwKfD/1jP7U4 2zvIL/NFwOxnzTpQl/TPZcW6mJ1T64BA892mpMx0MzBAIexHJbsBsf+n2wlHrX8pAb NQHST88jocrKduR0KXnbBh+nKJdzRadmnNfm5UuyDooo2GItWAfb2W7cNrQ0V9v6mD WHLIGU391SxqBMukiHteA6mk9V0C+zlMTGfKJDtJuN3UaNeYCrpAAw/8jlGsWzjdq9 JJtjGbrcA9BBQ== Date: Wed, 04 Jan 2023 11:32:23 -0500 From: Gary Johnson To: "Kefir ." Cc: help-guix@gnu.org Subject: Re: Changing dns during installation In-reply-to: Message-ID: <87lemixnky.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.29 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1672850322; a=rsa-sha256; cv=none; b=EjFfE0GGx1STeAFflsWDvSWa6zrFoh39JSpqJEfkhZTZv7AXjryicNMZy1rJvZaTX9pcTO rz37LjY6yVKjqSZDQ75JQJbtj2MqQZI/Rkg6IK6Lf5A7Q8MVQYMhln5XuifQi4kj1QtxFG 5UE9vveeThO/PofX4HH/kGHvB7DW6HHxE0Q4D4wXQMdffXocdvhV6LdYXiEaFlE2+cDZVK 4gUiXP4zLrdP//Pko+6cYKRLlbvKxQIHJaMxVb9ktJO1EwZt8DsN0qbBsikOgj5FlC3/kX 6Or2AatLulhANcuu/NTcM5tWnNNz+4CujaTeKkNo4pI30+qKZjp3bwG7F6rYwg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=fBUlT0Vo; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=reject) header.from=disroot.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1672850322; 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=OsUFx1Jw+E06VntbMUnygENAqM0a1LZt16hm2uFhjkY=; b=FM/jv+Ex5gDTaDDI2UrgzJSD5+eI/VdVygz3O+p2sT0SDnTVd/K/fkCRWlQnNzSGx6zy4b zTGz0polxrJRsp6uh1B42TO8PKaFkUugxNFrC1+GsAuzss1KhJUlajfG7fy8C3V1LrpNuB ICZGSmCCTZpt7uoW7ARnTk97bMRBH35vGp7Izxt93oNp/7tdEuUWlpxkcqiyvUrxX1Lpup CJ6eeraQBZaNpZfXUWHU1JT3IhKSMoDeIbPmVLqk1ZkqtzIBjAbhpXu1bNLGeeqfUk7MBR MzHjvsT4azEW4nYTLaf0AB3/e1NtV5QFUXnH/UQ1dB8piwTRxN4EgkpM/WKMCw== X-Spam-Score: -11.21 X-Migadu-Queue-Id: 6ED6B380FD Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=fBUlT0Vo; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=reject) header.from=disroot.org X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -11.21 X-TUID: w1IPSiIN43ET "Kefir ." writes: > Hi guix, is there way to change nameservers during manual installation? You can set your nameservers in your `operating-system` declaration by removing `network-manager-service-type` from `%desktop-services` and then either automatically creating a `resolv.conf` file with `etc-service` or setting the `name-servers` property in a `static-networking` configuration. Note that you would use one or the other, not both here. I've provided examples of both approaches below. ```scheme (use-modules ((gnu services base) #:select (static-networking-service-type static-networking network-address network-route)) ((gnu services desktop) #:select (%desktop-services)) ((gnu services networking) #:select (network-manager-service-type)) ((gnu services) #:select (etc-service modify-services)) ((gnu system) #:select (operating-system))) (operating-system ... (services (cons* ;; Add files under /etc (etc-service `(("resolv.conf" ,(plain-file "resolv.conf" "nameserver 53.100.82.198")))) ;; Static Networking (service static-networking-service-type (list (static-networking (addresses (list (network-address (device "enp2s0") (value "192.168.1.25/24")))) (routes (list (network-route (destination "default") (gateway "192.168.1.1")))) (name-servers '("53.100.82.198"))))) ;; Remove network-manager-service-type from %desktop-services (modify-services %desktop-services (delete network-manager-service-type))))) ``` -- 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