On Thu, Apr 03, 2025 at 12:59:19PM -0400, Jeffrey Walton wrote:
I think the idea is, software can always use 127.0.1.1 to find the host's fully qualified domain name, without the need to know real IP address. (And what to do with multihomed hosts?)
It literally doesn't matter. The host knows its own hostname, resolves that, then does a lookup on the resolved IP to get the canonical name. It does not care what the IP is, it can be 127.0.0.1, 10.0.0.1, 1.1.1.1, whatever. The software does not assume it can get that information by resolving 127.0.1.1, and if it did that would be a horrible bug because there is no such guarantee. (Most OSs do not do things the way debian does.)