From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id h7HgC/liAGRuKQAAbAwnHQ (envelope-from ) for ; Thu, 02 Mar 2023 09:48:57 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id QKqMC/liAGS3rgAA9RJhRA (envelope-from ) for ; Thu, 02 Mar 2023 09:48:57 +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 C6662AD2D for ; Thu, 2 Mar 2023 09:48:56 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pXebq-0007ba-Ao; Thu, 02 Mar 2023 03:48:18 -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 1pXebn-0007bB-CN for help-guix@gnu.org; Thu, 02 Mar 2023 03:48:16 -0500 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pXebl-0005UI-DX for help-guix@gnu.org; Thu, 02 Mar 2023 03:48:15 -0500 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 5A7623200970; Thu, 2 Mar 2023 03:48:09 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Thu, 02 Mar 2023 03:48:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=remworks.net; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm3; t=1677746888; x=1677833288; bh=3T ypsBT+ptspErPiE7fSpo/Ik68kH5zEkyUQ1ksG3XY=; b=XjFHoRGpUkyx0ZZ//n TM78F5VPRRev3K8PmB8jLiWibRoWsNgkGAfvkuhmwh5v83RZ7u77SqcTPuPFqOvY tQRicwIIpaT50t5Mx19hqbYqYSl4TzmQGOd3MzjBiWuSCu/GdR9yu09nStEw1uTg lBg9ANNtbAcaiOdBuhtQYHt3r7sGMJYmvoXadkZHfEs2yxwB+ZeRR5zQgooDmHEv ga3D23zZo3tf4BkcnlAUWJeKdUlA1ZH70M0ZTywk/T/Qk09inlT/YClw9fZDxDzk 0YkqH+/MzlZSKKckFVDl5SnDPKLJM1h+GUnMM7qlGaFL4ImuQFDJ06bjzoUDVKV5 0MvQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1677746888; x=1677833288; bh=3TypsBT+ptspE rPiE7fSpo/Ik68kH5zEkyUQ1ksG3XY=; b=ac/MGKneDa+6/dIpDyv517nWEE1sh U5qIWFIrlOpgW21ZHtUwS0nbqpcLameqZoi9gvDYPYvO0ije6GFqNi/lmRNjure/ +sfmLdh9EKRIlyKVMx7kwpkVDowy0FvxfReqtWz7vAexx1LTjUUyDclID81EZ9Ot XKhpC5aBL/EQMA6EZNizKZMv2NQ5WDfLRA29XMl2urv3c+bmAk499sgzmVeQX8YW b29KndDfgX78AEy0xEuRoTtSQcOel7lM8I0jZUdLQ8KfQTh0NQ8QreOsbPMu3tE2 ccjiWZf+BWqQXH4gTfY5TUKF2Ec6vZjbX6rhFWRM8B2GKcIRD84Qik3Pg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudeliedguddvudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpehffgfhvfevufgjfffkgggtsehttdertddtredtnecuhfhrohhmpeftvghm tghouchvrghnucdkthcugggvvghruceorhgvmhgtohesrhgvmhifohhrkhhsrdhnvghtqe enucggtffrrghtthgvrhhnpeekudevgeefudefleehvdeuvdfhueeftdetveekhefhiefg veelhfegueektdefveenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpehrvghmtghosehrvghmfihorhhkshdrnhgvth X-ME-Proxy: Feedback-ID: i9b4946af:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 2 Mar 2023 03:48:07 -0500 (EST) References: <87k00pi15e.fsf@colimite.fr> <87r0uw4e78.fsf@remworks.net> <06820a20-4a77-1707-a289-b83afdf7b026@makinata.eu> <87cz5vmxt9.fsf@remworks.net> <931ac97b-c1a1-f35e-02c9-cfbaa4ec2b08@makinata.eu> User-agent: mu4e 1.8.13; emacs 28.2 From: Remco van 't Veer To: Bruno Victal Cc: Sergiu Ivanov , help-guix@gnu.org Subject: Re: Examples of local-host-entries or hosts-service-type? In-reply-to: <931ac97b-c1a1-f35e-02c9-cfbaa4ec2b08@makinata.eu> Date: Thu, 02 Mar 2023 09:47:45 +0100 Message-ID: <87sfenletq.fsf@remworks.net> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=64.147.123.21; envelope-from=remco@remworks.net; helo=wout5-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-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=1677746937; a=rsa-sha256; cv=none; b=EkLfb8RjwWkEmZzSH3CGXjYgPTy8YRFRALzWSGs2o1d8PYkeTcvRjnxIePLGT6OuZS28US OtR36KUrhWkop+4EDeasHn/hBSAGVgAcOBEKzvFyNPj8rQMkk0i9CJDqmIYhoAFsipreO6 0Iz0QLnZvySv6/EWSRI4T+cEw5a8t+SpkidT4jGsxxn6iB1EVqXv56cgBXJC8oQgfSCq3u xr8QB7cGk5oY/CeYcwBUiV8s5KRSrA74Vzqrat0NnXrOJS6abh+0E8vxGzfpBPfsuOZR9Y Ky2Jl1Y+bF6UXuyZPn4hV7dhm7ohaL0pgbo2PzTl1lb+2YQyUFjFfo4Hoa5AJg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=remworks.net header.s=fm3 header.b=XjFHoRGp; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm1 header.b="ac/MGKne"; 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=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1677746937; 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=3TypsBT+ptspErPiE7fSpo/Ik68kH5zEkyUQ1ksG3XY=; b=tRsEM2FzMGzgwddoHLcY5KZdbj2kemxvTlm6Owcg5y+lkQFc3WvuxhfhPj8E3kIoP9uJp9 Z8vZsW3F4ngGFwRn6GViEL9tIhTjIundHjTcN/CgPhYK1Tp10mBirlFFgMv5PlCexgQgxi Z4H7Zk2nlEh9uH9vNc8+dNH2OcohV3DVaMQsz53TbfL5CMoECrGwsMox4DPs14+L6Fezym 6MVU97HVeOranmms5vzJXgTi2MlzMOoLiWZeMqwu21svZhc46/af014UhJz8HfSsK2bka2 LeZ+dVO/gqdF9W+V6DrYDPKAL4PvOkJUrfpolgISseHNUVOZynKwsGM8b70x+w== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -1.09 X-Spam-Score: -1.09 X-Migadu-Queue-Id: C6662AD2D Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=remworks.net header.s=fm3 header.b=XjFHoRGp; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm1 header.b="ac/MGKne"; 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=none X-TUID: 3XrR77ZzlVnk Hi Bruno, 2023/03/02 02:41, Bruno Victal: > On 2023-02-27 06:23, Remco van 't Veer wrote: >> >> Or when you want to provide extra aliases for localhost? >> >> Like this? >> >> (essential-services >> (modify-services >> (operating-system-default-essential-services this-operating-system) >> (hosts-service-type config => >> (list (host "127.0.0.1" "localhost" (list host-name "foo" "bar")) >> (host "::1" "localhost" (list host-name "foo" "bar")))))) > > Semantically you're right though I wouldn't outright do this unless it > results in clearer code or if its really needed. > > Reason for this is that the format of /etc/hosts isn't consistently > defined. > For instance, there is a limit on the maximum number of > aliases. (depending on the implementation) > > If I wanted to add extra aliases, I'd extend the service with new > "standalone" host records instead though your snippet is just as > valid, as long you don't go overboard with the number of aliases. I not sure all applications will react well to having multiple entries for the same IP-address. >From the hosts(5) manpage: > This file is a simple text file that associates IP addresses with > hostnames, one line per IP address. To workaround the alias limit, picking multiple loopback addresses (for the example above) would be a better solution, it seems. Cheers, Remco