3 ms·
> Users may assume that IPv4 and IPv6 address queries for localhost names will always resolve to the respective IP loopback address. Is the RFC assuming that t
by nybble41 5y ago
> Users may assume that IPv4 and IPv6 address queries for localhost names will always resolve to the respective IP loopback address.
Is the RFC assuming that there is only one loopback address for each protocol? That may be true for IPv6, but in IPv4 the entire 127.0.0.0/8 range is reserved for loopback. You can bind services to addresses anywhere in that range ("ip addr add 127.0.0.100/8 dev lo; nc -l 127.0.0.100 1234") which can only be accessed through that specific loopback address. So is this saying that .localhost domains must always resolve to some loopback address in IPv4 queries, or to 127.0.0.1 in particular?
There was a proposal to do something similar for IPv6 (using a 1::/32 prefix[0]) but it doesn't seem to have advanced much since 2013.
[0] https://tools.ietf.org/id/draft-smith-v6ops-larger-ipv6-loopback-prefix-04.html https://tools.ietf.org/id/draft-smith-v6ops-larger-ipv6-loop...