From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 WMxcCzn19GOfCQEAbAwnHQ (envelope-from ) for ; Tue, 21 Feb 2023 17:45:45 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 8AdOCjn19GN0vAAAG6o9tA (envelope-from ) for ; Tue, 21 Feb 2023 17:45:45 +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 DFDA6291CE for ; Tue, 21 Feb 2023 17:45:44 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pUVli-0007tN-LX; Tue, 21 Feb 2023 11:45:33 -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 1pUVlg-0007tB-5D for help-guix@gnu.org; Tue, 21 Feb 2023 11:45:28 -0500 Received: from smtpmciv4.myservices.hosting ([185.26.107.240]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pUVld-00086p-6X for help-guix@gnu.org; Tue, 21 Feb 2023 11:45:27 -0500 Received: from mail1.netim.hosting (unknown [185.26.106.173]) by smtpmciv4.myservices.hosting (Postfix) with ESMTP id C66CE20766; Tue, 21 Feb 2023 17:45:10 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail1.netim.hosting (Postfix) with ESMTP id 71AD08009E; Tue, 21 Feb 2023 17:45:10 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail1.netim.hosting Received: from mail1.netim.hosting ([127.0.0.1]) by localhost (mail1-2.netim.hosting [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id sA4RbpSY2xAz; Tue, 21 Feb 2023 17:45:10 +0100 (CET) Received: from [192.168.1.239] (unknown [10.192.1.83]) (Authenticated sender: lumen@makinata.eu) by mail1.netim.hosting (Postfix) with ESMTPSA id F1D458009D; Tue, 21 Feb 2023 17:45:09 +0100 (CET) Message-ID: <06820a20-4a77-1707-a289-b83afdf7b026@makinata.eu> Date: Tue, 21 Feb 2023 16:45:09 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: Examples of local-host-entries or hosts-service-type? Content-Language: en-US To: Remco van 't Veer , Sergiu Ivanov Cc: help-guix@gnu.org References: <87k00pi15e.fsf@colimite.fr> <87r0uw4e78.fsf@remworks.net> From: Bruno Victal In-Reply-To: <87r0uw4e78.fsf@remworks.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=185.26.107.240; envelope-from=mirai@makinata.eu; helo=smtpmciv4.myservices.hosting X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, NICE_REPLY_A=-0.095, 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-Flow: FLOW_IN X-Migadu-Country: US ARC-Seal: i=1; s=key1; d=yhetil.org; t=1676997944; a=rsa-sha256; cv=none; b=V/xZ7clw6SDjP6GsDwmT2UJXCTqlu8eqRAnEtiTQLKohEe8ZoAYnllCCU9WMJLe130M5/A 34s6GSPhw9Z6WWrxlmsXq3VxaVrZMoa9hVrY+J98Vwy8G/3cgUVLFeFVGIPlf6pYrEJoLE Jm0B5TdTQGt2FRrrA2Mbtrd8oTe5Gy/V3TZXEBKIyEXyfelp5nejpv6XYSq+fTUWT0vHDJ 572ox+hJhtYG5PvSz0VjQ3bIavpj2XYSUmvD+0JtRJgjJItmoEejWEELSOXSeCJRMvRgs5 arGUQd42zOllrpmOElAHVYw31AuvKToNK+uKI40vE5F+3RlyhWIo+QujpADlcg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1676997944; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=Ln9woOuQh/2+r2llkCYq8pVFfXcfZJNKcjAZyE+RLQk=; b=g7hmpc2RmzHBZK48FPCUzLcU1qo3iem61vwa1DqoD7W0yIEscAM+1HFsgsM3NvZuDo3EHS oj7qGw5858nmEWZwc0WnyNMPlyECPm+9BaeTKnGLDvzsjprxbVEg/twoy4to5M9OnCHPH8 WmJDTF2RgL/YY+SFUVuA0VwKCgVG11erEKfp06vI9Lgg0Zy3dFWdARiiWPplv1BlG8q3Ev 81g831SX+RIBFq6/G59zJah7upAofWa9LMCp+0RM8tTbQyAXdZbuYzrvbzNI83dOdtlvCH eWHv1ERCp7XwbM4upXQdZyrCpliVz2cTDu8lOTH7/d7W/yXYm71Mq5a4syZjAg== Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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" X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -1.95 X-Spam-Score: -1.95 X-Migadu-Queue-Id: DFDA6291CE X-TUID: xuOqWMFDsZcy Hi Remco, On 2023-02-11 11:46, Remco van 't Veer wrote: > (hosts-service-type config => > (cons* (host "some.ip.address.1" "machine1") > (host "some.other.ip.address" "machine2") > (local-host-entries host-name))))) This is not the "right" way to do use the service, the proper way is to extend this service (as described in the manual) by: --8<---------------cut here---------------start------------->8--- (simple-service 'add-extra-hosts hosts-service-type (list (host "192.0.2.1" "example.com" '("example.net" "example.org")) (host "2001:db8::1" "example.com" '("example.net" "example.org")))) --8<---------------cut here---------------end--------------->8--- You only override the hosts-service-type value when you don't want to have 'localhost' as an alias of your _hostname_ or you don't want to set '127.0.0.1' / '::1' as IPs for localhost / _hostname_. > local-host-entries This procedure is for internal guix use, it isn't really meant to be used outside. In fact, I think it shouldn't be exported at all since it's only use is to set the default value of hosts-service-type. Cheers, Bruno