Earlier quoted context omitted.
I remember in the late 90s running into a "mysterious" problem where www.hotmail.com would fail to load, but hotmail.com (without www.) worked just fine. Spent the better part of a year just remembering to not type "www." until one day they made the domain redirect to the canonical name (breaking both). After asking around a bit, someone showed me where the Windows equivalent of /etc/hosts was, and lo-and-behold, the…
/etc/hosts also seems to work on android https://android.stackexchange.com/a/110483
Internet Draft: Let 'localhost' be localhost
111–120 of 179 posts
Re: Internet Draft: Let 'localhost' be localhost
#112Earlier quoted context omitted.
I agree about getaddrinfo(). Applications should have specified AF_INET to gethostbyname() and then when updating to getaddrinfo(), handle ipv6 correctly or skip it. The IPv4-mapped IPv6 addresses thing is a terrible idea that ends up turned off everywhere it makes a difference. Like all of these "transition" ideas, it tries to help, but it just hurts by causing admins/ops/devs to just make sure ipv6 is off everywher…
Is it fair to say IPv6 has been generally a failure? Or is it too early for that?
Re: Internet Draft: Let 'localhost' be localhost
#113Does this mean that an entry in /etc/hosts assigning ip to localhost will be ignored?
Not necessarily. The requirement for applications concerned about security properties of localhost names is that the resolved address is bound to a loopback interface, in order to satisfy the test in section 5.1 of this draft. However, I expect many application developers to mistakenly assume that only 127/8 and ::1 are valid loopback interface addresses.
Re: Internet Draft: Let 'localhost' be localhost
#114If this doesn't happen or takes too long, there's always lacolhost.com and *.lacolhost.com. I own this domain, have registered it out until 2026 and vow that the domain and all subdomains will always redirect to localhost. It's easy to type and easy to remember and should always do a good job of expressing intent of usage.
You're amazing. I hope you're given more power than you already have.
Re: Internet Draft: Let 'localhost' be localhost
#115Why couldn't they just redirect "localhost" at the DNS level to 127.0.0.1?
Well, because that IP isn't what localhost is supposed to be pointed to. It's supposed to point at 127.0.0.1. The IP you mentioned is more likely to be the IP of the router you're connected to. Usually 127.0.0.1 is limited to the computer's internal network via a loopback network interface and `localhost` should be resolving just to that, but this RFC makes it so that no matter what `localhost` will point locally ins…
Re: Internet Draft: Let 'localhost' be localhost
#116First, the lack of confidence that "localhost" actually resolves to the loopback interface encourages application developers to hard-code IP addresses like "127.0.0.1" in order to obtain certainty regarding routing. This causes problems in the transition from IPv4 to IPv6 (see problem 8 in [draft-ietf-sunset4-gapanalysis]). That does remind me of the times I was dealing with weird connection issues in some critical s…
My guess is that it was some hack they tried to disable IPv6, but aside from the insane load it added to the DNS infrastructure, the other result is that if these machines talk to a malicious resolver, their traffic destined for the loopback interface could end up going anywhere and being captured by anyone.
Great job!
Re: Internet Draft: Let 'localhost' be localhost
#117Earlier quoted context omitted.
I agree about getaddrinfo(). Applications should have specified AF_INET to gethostbyname() and then when updating to getaddrinfo(), handle ipv6 correctly or skip it. The IPv4-mapped IPv6 addresses thing is a terrible idea that ends up turned off everywhere it makes a difference. Like all of these "transition" ideas, it tries to help, but it just hurts by causing admins/ops/devs to just make sure ipv6 is off everywher…
Is it fair to say IPv6 has been generally a failure? Or is it too early for that?
And it's finally starting to catch on, 10 years late: Google's primary web domains, Facebook, AWS, Comcast and Time Warner cable internet in the US, most LTE cell service in the US.
Re: Internet Draft: Let 'localhost' be localhost
#118Re: Internet Draft: Let 'localhost' be localhost
#119Can anybody with more knowledge point out techniques that this would break? Are there any software or networking patterns that currently rely on localhost _not_ resolving to the loopback? EDIT: The RFC mentions that MySQL currently differentiates between the two, but that's it.
Hmm I guess people may use IPs other than 127.0.0.1 like 127.0.0.2 for Docker or maybe VPN/VM shenanigans...
Re: Internet Draft: Let 'localhost' be localhost
#120Earlier quoted context omitted.
I always have local.my company.com DNS that resolves to 127.0.0.1. I can get a valid cert that way too.
I hope you don't publish that record to the world.