Index | Thread | Search

From:
Crystal Kolipe <kolipe.c@exoticsilicon.com>
Subject:
Re: netstat(1): get rid of inet_aton
To:
tech@openbsd.org
Date:
Mon, 12 Aug 2024 06:02:37 -0300

Download raw body.

Thread
On Mon, Aug 12, 2024 at 08:32:48AM +0200, Florian Obser wrote:
> On 2024-08-12 00:07 +02, Kirill A. Korinsky <kirill@korins.ky> 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