* Examples of local-host-entries or hosts-service-type?
@ 2023-02-10 22:40 Sergiu Ivanov
2023-02-10 23:37 ` Bruno Victal
2023-02-11 11:46 ` Remco van 't Veer
0 siblings, 2 replies; 14+ messages in thread
From: Sergiu Ivanov @ 2023-02-10 22:40 UTC (permalink / raw)
To: help-guix
Hello Guix,
I am reconfiguring my system right now, and guix system reconfigure
/etc/config.scm tells me this:
/etc/config.scm:126:27: warning: 'local-host-aliases' is deprecated, use 'local-host-entries' instead
/etc/config.scm:126:27: warning: 'local-host-aliases' is deprecated, use 'local-host-entries' instead
/etc/config.scm:124:14: warning: the 'hosts-file' field is deprecated, please use 'hosts-service-type' instead
For the record, here are the lines guix system reconfigure is
complaining about:
(hosts-file (plain-file "hosts"
(string-append
(local-host-aliases host-name)
"some.ip.address.1 machine1\n"
"some.other.ip.address machine2\n")))
I spent quite some time trying to find some examples of using
local-host-entries or hosts-service-type, but I don't seem to find any
mention of these. Quite on the contrary, the Guix manual actually seems
to advice declarations similar to those which I have in my
/etc/config.scm.
Could someone point me to an example of how I should update
my configuration?
-
Sergiu
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Examples of local-host-entries or hosts-service-type?
2023-02-10 22:40 Examples of local-host-entries or hosts-service-type? Sergiu Ivanov
@ 2023-02-10 23:37 ` Bruno Victal
2023-02-11 11:46 ` Remco van 't Veer
1 sibling, 0 replies; 14+ messages in thread
From: Bruno Victal @ 2023-02-10 23:37 UTC (permalink / raw)
To: Sergiu Ivanov; +Cc: help-guix
On 2023-02-10 22:40, Sergiu Ivanov wrote:
> Hello Guix,
>
> I am reconfiguring my system right now, and guix system reconfigure
> /etc/config.scm tells me this:
>
> /etc/config.scm:126:27: warning: 'local-host-aliases' is deprecated, use 'local-host-entries' instead
> /etc/config.scm:126:27: warning: 'local-host-aliases' is deprecated, use 'local-host-entries' instead
> /etc/config.scm:124:14: warning: the 'hosts-file' field is deprecated, please use 'hosts-service-type' instead
>
> For the record, here are the lines guix system reconfigure is
> complaining about:
>
> (hosts-file (plain-file "hosts"
> (string-append
> (local-host-aliases host-name)
> "some.ip.address.1 machine1\n"
> "some.other.ip.address machine2\n")))
>
> I spent quite some time trying to find some examples of using
> local-host-entries or hosts-service-type, but I don't seem to find any
> mention of these. Quite on the contrary, the Guix manual actually seems
> to advice declarations similar to those which I have in my
> /etc/config.scm.
>
> Could someone point me to an example of how I should update
> my configuration?
>
> -
> Sergiu
>
See 'hosts-service-type' under Service Reference <https://guix.gnu.org/en/manual/devel/en/html_node/Service-Reference.html>.
Cheers,
Bruno
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Examples of local-host-entries or hosts-service-type?
2023-02-10 22:40 Examples of local-host-entries or hosts-service-type? Sergiu Ivanov
2023-02-10 23:37 ` Bruno Victal
@ 2023-02-11 11:46 ` Remco van 't Veer
2023-02-13 10:49 ` Sergiu Ivanov
` (2 more replies)
1 sibling, 3 replies; 14+ messages in thread
From: Remco van 't Veer @ 2023-02-11 11:46 UTC (permalink / raw)
To: Sergiu Ivanov; +Cc: help-guix
Hi Sergiu,
2023/02/10 23:40, Sergiu Ivanov:
> Hello Guix,
>
> I am reconfiguring my system right now, and guix system reconfigure
> /etc/config.scm tells me this:
>
> /etc/config.scm:126:27: warning: 'local-host-aliases' is deprecated, use 'local-host-entries' instead
> /etc/config.scm:126:27: warning: 'local-host-aliases' is deprecated, use 'local-host-entries' instead
> /etc/config.scm:124:14: warning: the 'hosts-file' field is deprecated, please use 'hosts-service-type' instead
>
> For the record, here are the lines guix system reconfigure is
> complaining about:
>
> (hosts-file (plain-file "hosts"
> (string-append
> (local-host-aliases host-name)
> "some.ip.address.1 machine1\n"
> "some.other.ip.address machine2\n")))
>
> I spent quite some time trying to find some examples of using
> local-host-entries or hosts-service-type, but I don't seem to find any
> mention of these. Quite on the contrary, the Guix manual actually seems
> to advice declarations similar to those which I have in my
> /etc/config.scm.
>
> Could someone point me to an example of how I should update
> my configuration?
In the guix manual I found this:
https://guix.gnu.org/en/manual/devel/en/html_node/Service-Reference.html#index-hosts_002dservice_002dtype
So instead of using (hosts-file ..) you'll have to use
(hosts-service-type ..) instead, as you already mentioned. You'll end
up with something like to following:
(operating-system
;; ...
(essential-services
(modify-services
(operating-system-default-essential-services this-operating-system)
(hosts-service-type config =>
(cons* (host "some.ip.address.1" "machine1")
(host "some.other.ip.address" "machine2")
(local-host-entries host-name)))))
;; ...
I tried it and it seems to work for me. Also, I agree the documentation
needs some love here.
Cheers,
Remco
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Examples of local-host-entries or hosts-service-type?
2023-02-11 11:46 ` Remco van 't Veer
@ 2023-02-13 10:49 ` Sergiu Ivanov
2023-02-14 9:34 ` Remco van 't Veer
2023-02-21 15:33 ` Gary Johnson
2023-02-21 16:45 ` Bruno Victal
2 siblings, 1 reply; 14+ messages in thread
From: Sergiu Ivanov @ 2023-02-13 10:49 UTC (permalink / raw)
To: Remco van 't Veer; +Cc: help-guix
Hi Bruno, hi Remco,
Thank you very much for your suggestions!
Remco van 't Veer <remco@remworks.net> [2023-02-11T12:46:35+0100]:
> 2023/02/10 23:40, Sergiu Ivanov:
>>
>> Could someone point me to an example of how I should update
>> my configuration?
>
> In the guix manual I found this:
>
> https://guix.gnu.org/en/manual/devel/en/html_node/Service-Reference.html#index-hosts_002dservice_002dtype
>
> So instead of using (hosts-file ..) you'll have to use
> (hosts-service-type ..) instead, as you already mentioned. You'll end
> up with something like to following:
>
> (operating-system
> ;; ...
>
> (essential-services
> (modify-services
> (operating-system-default-essential-services this-operating-system)
> (hosts-service-type config =>
> (cons* (host "some.ip.address.1" "machine1")
> (host "some.other.ip.address" "machine2")
> (local-host-entries host-name)))))
>
> ;; ...
Oh, thank you very much for the specific solution! It worked for
me flawlessly.
Actually, where did you get local-host-entries from? The documentation
page you and Bruno cite doesn't seem to ever mention this function :O
Unless I am looking at some old version of the docs.
> Also, I agree the documentation needs some love here.
I am willing to contribute. What would be the best place to do changes
to the documentation?
I would follow this mini-roadmap:
1. Add the explanation of local-host-entries to
https://guix.gnu.org/en/manual/devel/en/html_node/Service-Reference.html#index-hosts_002dservice_002dtype
2. Say here
https://guix.gnu.org/manual/en/html_node/operating_002dsystem-Reference.html
that hosts-file is deprecated.
3. Update the examples here to use hosts-service-type instead of
hosts-file: https://guix.gnu.org/manual/en/guix.html
What do you think?
I've never submitted a patch to Guix docs before, so all suggestions and
hints are welcome :-)
-
Sergiu
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Examples of local-host-entries or hosts-service-type?
2023-02-13 10:49 ` Sergiu Ivanov
@ 2023-02-14 9:34 ` Remco van 't Veer
0 siblings, 0 replies; 14+ messages in thread
From: Remco van 't Veer @ 2023-02-14 9:34 UTC (permalink / raw)
To: Sergiu Ivanov; +Cc: help-guix
Hi Sergiu,
2023/02/13 11:49, Sergiu Ivanov:
> Actually, where did you get local-host-entries from? The documentation
> page you and Bruno cite doesn't seem to ever mention this function :O
> Unless I am looking at some old version of the docs.
To be honest, I did not know about local-host-entries before your email
and thought it would allow me to cleanup my own (operating-system
.. (hosts-file (plain-file .. (string-append ..) mess. So I did some
digging in the guix source and found some references in gnu/system.scm.
>> Also, I agree the documentation needs some love here.
>
> I am willing to contribute. What would be the best place to do changes
> to the documentation?
doc/guix.texi
> I would follow this mini-roadmap:
>
> 1. Add the explanation of local-host-entries to
> https://guix.gnu.org/en/manual/devel/en/html_node/Service-Reference.html#index-hosts_002dservice_002dtype
>
> 2. Say here
> https://guix.gnu.org/manual/en/html_node/operating_002dsystem-Reference.html
> that hosts-file is deprecated.
>
> 3. Update the examples here to use hosts-service-type instead of
> hosts-file: https://guix.gnu.org/manual/en/guix.html
>
> What do you think?
Sounds like a plan to me. Note: all the above is part of doc/guix.texi,
I think.
> I've never submitted a patch to Guix docs before, so all suggestions and
> hints are welcome :-)
Me neither (apart from a typo I found in the Service Reference section
during grepping for examples). I don't have a clue about how
translations are kept in sync. Maybe just go for it and collect some
feedback with a patch.
Cheers,
Remco
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Examples of local-host-entries or hosts-service-type?
2023-02-11 11:46 ` Remco van 't Veer
2023-02-13 10:49 ` Sergiu Ivanov
@ 2023-02-21 15:33 ` Gary Johnson
2023-02-26 18:33 ` Sergiu Ivanov
2023-02-21 16:45 ` Bruno Victal
2 siblings, 1 reply; 14+ messages in thread
From: Gary Johnson @ 2023-02-21 15:33 UTC (permalink / raw)
To: Remco van 't Veer; +Cc: Sergiu Ivanov, help-guix
2023/02/10 23:40, Sergiu Ivanov:
> I am reconfiguring my system right now, and guix system reconfigure
> /etc/config.scm tells me this:
>
> /etc/config.scm:126:27: warning: 'local-host-aliases' is deprecated, use 'local-host-entries' instead
> /etc/config.scm:126:27: warning: 'local-host-aliases' is deprecated, use 'local-host-entries' instead
> /etc/config.scm:124:14: warning: the 'hosts-file' field is deprecated, please use 'hosts-service-type' instead
>
> For the record, here are the lines guix system reconfigure is
> complaining about:
>
> (hosts-file (plain-file "hosts"
> (string-append
> (local-host-aliases host-name)
> "some.ip.address.1 machine1\n"
> "some.other.ip.address machine2\n")))
>
> I spent quite some time trying to find some examples of using
> local-host-entries or hosts-service-type, but I don't seem to find any
> mention of these. Quite on the contrary, the Guix manual actually seems
> to advice declarations similar to those which I have in my
> /etc/config.scm.
>
> Could someone point me to an example of how I should update
> my configuration?
Hi Sergiu et al,
I just went through this exercise myself, and I decided to keep my
extra /etc/hosts entries in a separate text file using the original
hosts format. This makes them much easier for me to read and edit. To
provide them to the `hosts-service-type` service, I went ahead and wrote
a little importer function in Scheme that I thought some other folks
might benefit from. Here it is along with how to use it in your
`operating-system` declaration:
```scheme
(use-modules
((gnu services base) #:select (hosts-service-type host))
((gnu services desktop) #:select (%desktop-services))
((gnu services) #:select (simple-service))
((gnu system) #:select (operating-system))
((ice-9 ports) #:select (call-with-input-file))
((ice-9 textual-ports) #:select (get-string-all)))
(define (load-hosts-entries)
(call-with-input-file "etcfiles/extra-hosts"
(lambda (p)
(let* ((text (get-string-all p))
(lines (string-split text #\newline))
(lines* (filter (lambda (l) (not (or (string-null? l) (string-prefix? "#" l)))) lines)))
(map (lambda (l)
(let* ((tokens (string-split l #\space))
(tokens* (filter (lambda (t) (not (string-null? t))) tokens))
(ip (car tokens*))
(alias (cadr tokens*)))
(host ip alias)))
lines*)))))
(operating-system
...
(services (cons* (simple-service 'add-extra-hosts hosts-service-type (load-hosts-entries))
...
%desktop-services)))
```
To make this work, I have my additional hosts entries in a file called
"etcfiles/extra-hosts" relative to the location of my `system.scm` file
(which contains the `operating-system` declaration above).
That file looks like so:
```
# Section Comment 1
10.1.30.1 name1 # Maybe a comment for myself
10.1.30.2 name2
10.1.30.3 name3
10.1.30.4 name4 # Another comment
# Section Comment 2
10.6.1.1 name5
10.6.1.2 name6 # And yet another comment
10.6.1.3 name7
10.6.1.4 name8
```
This is, of course, the regular /etc/hosts format. I just leave out the
127.0.0.1 and ::1 entries for localhost since Guix adds those
automatically.
Also, please note that the Guix info pages are incorrect for
`hosts-service-type` and `host`. The docs say they are exported by `(gnu
services)`, but they are actually located in `(gnu services base)`. It
would be great if one of the manual maintainers could fix this mistake
as it was one of the trickiest things I had to figure out to make this
code work.
Thanks and happy hacking!
Gary
--
GPG Key ID: C4FBEDBD
Use `gpg --search-keys tracker@disroot.org' 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
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Examples of local-host-entries or hosts-service-type?
2023-02-11 11:46 ` Remco van 't Veer
2023-02-13 10:49 ` Sergiu Ivanov
2023-02-21 15:33 ` Gary Johnson
@ 2023-02-21 16:45 ` Bruno Victal
2023-02-26 18:05 ` Sergiu Ivanov
2023-02-27 6:23 ` Remco van 't Veer
2 siblings, 2 replies; 14+ messages in thread
From: Bruno Victal @ 2023-02-21 16:45 UTC (permalink / raw)
To: Remco van 't Veer, Sergiu Ivanov; +Cc: help-guix
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
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Examples of local-host-entries or hosts-service-type?
2023-02-21 16:45 ` Bruno Victal
@ 2023-02-26 18:05 ` Sergiu Ivanov
2023-02-27 6:23 ` Remco van 't Veer
1 sibling, 0 replies; 14+ messages in thread
From: Sergiu Ivanov @ 2023-02-26 18:05 UTC (permalink / raw)
To: Bruno Victal, Remco van 't Veer; +Cc: help-guix
Hi Bruno and Remco,
Thank you for your messages and sorry for the delay with the answer.
Bruno Victal <mirai@makinata.eu> [2023-02-21T17:45:09+0100]:
> 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:
>
> (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"))))
Thanks a lot! I added this to my services in operating-system and it
worked flawlessly.
> 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_.
Oh, good to know that!
>> 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.
I have just done a guix pull and the new version of Guix does not
recognize local-host-entries any more. Apparently someone has removed
the export, as you suggested.
In terms of the docs, I don't find the entry for hosts-service-type here
any more:
https://guix.gnu.org/manual/en/manual/devel/en/html_node/Service-Reference.html
even though this is where I found the information about
hosts-service-type last week, and a cached version of the page still
shows this entry.
I guess Guix People are working on the subject at the moment, so I will
contain my zeal to update the documentation a little bit :D
-
Sergiu
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Examples of local-host-entries or hosts-service-type?
2023-02-21 15:33 ` Gary Johnson
@ 2023-02-26 18:33 ` Sergiu Ivanov
0 siblings, 0 replies; 14+ messages in thread
From: Sergiu Ivanov @ 2023-02-26 18:33 UTC (permalink / raw)
To: Gary Johnson; +Cc: Remco van 't Veer, help-guix
Hi Gary,
Gary Johnson <lambdatronic@disroot.org> [2023-02-21T16:33:25+0100]:
> 2023/02/10 23:40, Sergiu Ivanov:
>>
>> Could someone point me to an example of how I should update
>> my configuration?
>
> I just went through this exercise myself, and I decided to keep my
> extra /etc/hosts entries in a separate text file using the original
> hosts format. This makes them much easier for me to read and edit. To
> provide them to the `hosts-service-type` service, I went ahead and wrote
> a little importer function in Scheme that I thought some other folks
> might benefit from.
Wow, thanks a lot for sharing! You even handle comments :clap:
I admit that I literally have 2 entries to add to my /etc/hosts, so
I will still go with the manual addition as suggested by Bruno and
Remco, but I will keep your solution in mind!
> Also, please note that the Guix info pages are incorrect for
> `hosts-service-type` and `host`. The docs say they are exported by `(gnu
> services)`, but they are actually located in `(gnu services base)`.
Yeah, people seem to be actively working on this particular part of Guix
at the moment, including the docs. I guess stuff will get fixed soon.
-
Sergiu
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Examples of local-host-entries or hosts-service-type?
2023-02-21 16:45 ` Bruno Victal
2023-02-26 18:05 ` Sergiu Ivanov
@ 2023-02-27 6:23 ` Remco van 't Veer
2023-03-02 2:41 ` Bruno Victal
1 sibling, 1 reply; 14+ messages in thread
From: Remco van 't Veer @ 2023-02-27 6:23 UTC (permalink / raw)
To: Bruno Victal; +Cc: Sergiu Ivanov, help-guix
Hi Bruno,
Thanks for the clarification!
2023/02/21 16:45, Bruno Victal:
> 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_.
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"))))))
Cheers,
Remco
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Examples of local-host-entries or hosts-service-type?
2023-02-27 6:23 ` Remco van 't Veer
@ 2023-03-02 2:41 ` Bruno Victal
2023-03-02 8:47 ` Remco van 't Veer
0 siblings, 1 reply; 14+ messages in thread
From: Bruno Victal @ 2023-03-02 2:41 UTC (permalink / raw)
To: Remco van 't Veer; +Cc: Sergiu Ivanov, help-guix
Hi Remco,
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.
Cheers,
Bruno
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Examples of local-host-entries or hosts-service-type?
2023-03-02 2:41 ` Bruno Victal
@ 2023-03-02 8:47 ` Remco van 't Veer
2023-03-03 14:00 ` Bruno Victal
0 siblings, 1 reply; 14+ messages in thread
From: Remco van 't Veer @ 2023-03-02 8:47 UTC (permalink / raw)
To: Bruno Victal; +Cc: Sergiu Ivanov, help-guix
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
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Examples of local-host-entries or hosts-service-type?
2023-03-02 8:47 ` Remco van 't Veer
@ 2023-03-03 14:00 ` Bruno Victal
2023-03-03 16:16 ` Remco van 't Veer
0 siblings, 1 reply; 14+ messages in thread
From: Bruno Victal @ 2023-03-03 14:00 UTC (permalink / raw)
To: Remco van 't Veer; +Cc: Sergiu Ivanov, help-guix
On 2023-03-02 08:47, Remco van 't Veer wrote:
> 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.
It doesn't state that the IP addresses must be unique.
Were that the case then blacklists such as <https://someonewhocares.org/hosts/hosts>
which employ the hosts file method would be broken.
AFAIK this method has around for a long time, I don't see this behavior changing anytime soon
even if it turned out to be "against spec".
Cheers,
Bruno
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Examples of local-host-entries or hosts-service-type?
2023-03-03 14:00 ` Bruno Victal
@ 2023-03-03 16:16 ` Remco van 't Veer
0 siblings, 0 replies; 14+ messages in thread
From: Remco van 't Veer @ 2023-03-03 16:16 UTC (permalink / raw)
To: Bruno Victal; +Cc: Sergiu Ivanov, help-guix
Bruno Victal wrote:
>Were that the case then blacklists such as <https://someonewhocares.org/hosts/hosts>
>which employ the hosts file method would be broken.
>AFAIK this method has around for a long time, I don't see this behavior changing anytime soon
>even if it turned out to be "against spec".
Makes sense. Thanks.
Cheers,
Remco
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2023-03-03 16:17 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-10 22:40 Examples of local-host-entries or hosts-service-type? Sergiu Ivanov
2023-02-10 23:37 ` Bruno Victal
2023-02-11 11:46 ` Remco van 't Veer
2023-02-13 10:49 ` Sergiu Ivanov
2023-02-14 9:34 ` Remco van 't Veer
2023-02-21 15:33 ` Gary Johnson
2023-02-26 18:33 ` Sergiu Ivanov
2023-02-21 16:45 ` Bruno Victal
2023-02-26 18:05 ` Sergiu Ivanov
2023-02-27 6:23 ` Remco van 't Veer
2023-03-02 2:41 ` Bruno Victal
2023-03-02 8:47 ` Remco van 't Veer
2023-03-03 14:00 ` Bruno Victal
2023-03-03 16:16 ` Remco van 't Veer
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.