From mboxrd@z Thu Jan 1 00:00:00 1970 From: Giovanni Biscuolo Subject: Re: set dnsdomainname Date: Wed, 06 Mar 2019 08:35:13 +0100 Message-ID: <87lg1szc9a.fsf@roquette.mug.biscuolo.net> References: <20190305113013.2c1821a5@gfi063209.klientdrift.uib.no> <20190305194441.459e7b7b@jasniac.instanton> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:59550) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h1R5s-0006du-MN for help-guix@gnu.org; Wed, 06 Mar 2019 02:36:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h1R5r-0005Wh-EM for help-guix@gnu.org; Wed, 06 Mar 2019 02:36:00 -0500 Received: from ns13.heimat.it ([46.4.214.66]:52308) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h1R5q-0005Rx-Nr for help-guix@gnu.org; Wed, 06 Mar 2019 02:35:59 -0500 In-Reply-To: <20190305194441.459e7b7b@jasniac.instanton> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Marco van Hulten , help-guix@gnu.org --=-=-= Content-Type: text/plain Hi Marco, Marco van Hulten writes: [...] > I found that one can edit /etc/hosts , starting with something like: > > 127.0.0.1 localhost > 127.0.1.1 myhost.mydomain myhost for hosts you have to configure "hosts-file" [1] in your operating-system section I found this in an old thread [2]: --8<---------------cut here---------------start------------->8--- you can keep your hosts file wherever you want, let's say "~/my-config/hosts"; and you can add this line to your operating-system declaration: (hosts-file (local-file (string-append (getenv "HOME") "/my-config/hosts"))) After reconfiguring your system, this file will be put into the store, and /etc/hosts will have the same contents after reboot. --8<---------------cut here---------------end--------------->8--- I'd prefer setting the contents "inline" declaring each hosts record... but I don't know how to do it HTH! Giovanni [1] https://www.gnu.org/software/guix/manual/en/html_node/operating_002dsystem-Reference.html#index-hosts-file [2] https://lists.gnu.org/archive/html/bug-guix/2016-03/msg00114.html --=-=-= Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" --==-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable =2D-=20 Giovanni Biscuolo Xelera IT Infrastructures --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEERcxjuFJYydVfNLI5030Op87MORIFAlx/eDIACgkQ030Op87M ORLTlRAArvi1SFJPEOrgyMMk9MrU7HDUESP6Ce7FNKtMskzQTuA30fF3JFWBUyxL 3zzrXmkgSJHEU5bin+gEgnHwTN2YvqAtiF8IqxF3hP5ucvqOFGQn76tk4QQdhWHL OtU4bXcNLYMVRRWHNweFLOz6q1oAWxFskhEd42/hN3zYShlSoz1K+de94G1W+4Pz 7NdidKvY5tlZsYRXE3bc81f1k0d73nr36F3EfdSEM+i5TQXn8OqC8FIVpYNCVaGq gYh7fPXyTYCEDX1wQesVdGQv6k4E1Kc4QeV5M4BZQVtve2uT2tvZWrRBnYRvK4uu PmGJqkS5QMCd3UM1GM4abnvop3oDqMCn+t2ZySa7qbMG3Yvuvc0rH3BUy++WT8OJ 6FKRXrHRKw5oqsq3vTyCNb7yOUuuEaU2aYK4b9gYGNXnofgYLd6y8pA5N1VADedT cl7w701FUd67wXqCdpn9KbWRc/EDFW3MLRyg7Co4tBw3+/Evbv32WphJ4zGicPIN vj1pfH8CcFqCOxIHe8oyhHYFQXkkW7KB28z0Rfxk6GPU8NcvRXDilib0+vIlC+C4 LsKryR5+Krmp4HONw3Kp3nWJiMGg9EtA4esBWQ6CqfRTnRbumCCmQ5/3XXoDiWS3 3yFIR3wBkkZP2v3LCReVWEjGDFmlB57HLMt3Bj5ISDdFP7AlbZs= =zdou -----END PGP SIGNATURE----- --==-=-=-- --=-=-=--