* Simon McVittie <smcv@debian.org> [2025-10-13 23:51]:
libnss-myhostname does this dynamically rather than by writing static configuration, so it will try to use one of the machine's reachable IP addresses (192.0.2.123 or something), falling back to 127.0.0.2 if there's nothing better available. 127.0.0.2 is conceptually similar to 127.0.1.1, just a slightly different implementation choice.
An additional benefit is that libnss-myhostname allows deleting /etc/hosts so one file less to manually keep in sync and that could influence the system.
Cheers Jochen
Attachment:
signature.asc
Description: PGP signature