[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: set dnsdomainname

From: Tobias Geerinckx-Rice
Subject: Re: set dnsdomainname
Date: Wed, 06 Mar 2019 10:21:13 +0100

Giovanni, Marco,

Giovanni Biscuolo wrote:
I'd prefer setting the contents "inline" declaring each hosts
record... but I don't know how to do it

Probably easier than you thought!

 (host-name "")
;; This creates a file /gnu/store/…-hosts and links it as /etc/hosts.
 (hosts-file (plain-file "hosts "\ localhost
::1 localhost

Doing it in Scheme also allows one to factor out some of that ugly repetition, if I'd bother.

Kind regards,


reply via email to

[Prev in Thread] Current Thread [Next in Thread]