From: Claudio Jeker Subject: Re: netstat(1): get rid of inet_aton To: tech@openbsd.org Date: Mon, 12 Aug 2024 11:18:19 +0200 On Mon, Aug 12, 2024 at 06:02:37AM -0300, Crystal Kolipe wrote: > On Mon, Aug 12, 2024 at 08:32:48AM +0200, Florian Obser wrote: > > On 2024-08-12 00:07 +02, Kirill A. Korinsky wrote: > > > Am I missing the place where 127.0.0.1 is required to be the only possible > > > localhost address? > > > > > > > The commit message quotes this: > > > > RFC 6761, 6.3 Domain Name Reservation Considerations for "localhost.": > > 3. Name resolution APIs and libraries SHOULD recognize localhost > > names as special and SHOULD always return the IP loopback address > > for address queries and negative responses for all other query > > types. Name resolution APIs SHOULD NOT send queries for > > localhost names to their configured caching DNS server(s). > > > > Now, you could hagle a bit what "the IP loopback address" actually > > means. On OpenBSD it means 127.0.0.1 for IPv4 and ::1 for IPv6. > > A somewhat related discussion came up on -tech back in 2022: > > https://marc.info/?l=openbsd-tech&m=165377078102153&w=2 No, it is not related. It does not talk about using anything else than 127.0.0.1 as localhost loopback address. 127.0.0.1 is required to exist and be the loopback end of story. Some people would like to recover the rest of 127/8 for other use. Which is probably going to happen right after IPv6 took over the Internet (which right now is expected to happen somewhen after the heat death of the universe). -- :wq Claudio