Include `::1 localhost` in /etc/hosts

Treysis treysis at gmx.net
Wed Apr 20 21:08:09 UTC 2022


::1 is also in /etc/hosts in 20.04, but it's mapped to ip6-localhost,
not to localhost.

And that had been different in the past.

Haven't installed 22.04 beta so I don't know what will be the case for
22.04 but I also guess it's too late to still land such a change. Though
it'd be a pity if that's gonna be the default for another 2 years.

Cheers,

Trey

On 4/20/2022 22:54, Jeremy Bicha wrote:
> ::1 is in /etc/hosts in a new Ubuntu 22.04 install. I don't believe
> this is new at all.
>
> Thanks,
> Jeremy Bicha
>
> On Wed, Apr 20, 2022 at 4:49 PM Treysis <treysis at gmx.net> wrote:
>> Hello everyone,
>>
>> it seems like some releases ago the mapping of localhost to ::1 was
>> removed. Why was this done? Many other distros don't do this (Debian,
>> Arch, Gentoo, OpenWrt), many other operating systems neither (macOS,
>> Windows). Not having localhost to resolve to ::1 is getting problematic.
>>
>> Will 22.04 by default again introduce mapping of ::1 to localhost? If
>> not, I want to suggest to change this in the future. It seems like this
>> has been the case before.
>>
>> Cheers,
>>
>> Trey
>>
>>
>> --
>> Ubuntu-devel-discuss mailing list
>> Ubuntu-devel-discuss at lists.ubuntu.com
>> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss
>
>



More information about the Ubuntu-devel-discuss mailing list