New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

proposal: net: add support for "let localhost be localhost" #22826

Open
mikioh opened this Issue Nov 21, 2017 · 5 comments

Comments

Projects
None yet
4 participants
@mikioh
Contributor

mikioh commented Nov 21, 2017

The I-D https://tools.ietf.org/html/draft-ietf-dnsop-let-localhost-be-localhost became an IETF dnsop-wg draft. It would be better to support the feature once the I-D has been published as an RFC for the sake of convenience instead of saying "sorry, there's no direct relationship between the IPv4 loopback address prefix 127.0.0.0/8 or the IPv6 loopback address ::1 and the name localhost, that's just the convention", although the resolution for localhost still remains as a burden of applications from security perspective.

@bradfitz

This comment has been minimized.

Member

bradfitz commented Nov 21, 2017

Can you briefly describe the proposal, or do I need to read that URL?

Are you proposing that we hard-code DNS resolution of "localhost" to always mean 127.0.0.1 or ::1?

@mikioh

This comment has been minimized.

Contributor

mikioh commented Nov 29, 2017

hard-code DNS resolution

Sort of. Simply, implementing mapping between the label localhost., and 127.0.0.0/8 and ::1 into the existing DNS stub resolver and a few tweaks such as routing ability check for 127.0.0.0/8 and ::1; routing instances may take any address in 127.0.0.0/8 as its loopback address.

@bradfitz

This comment has been minimized.

Member

bradfitz commented Nov 29, 2017

Could you send a CL?

I imagine once it's an official RFC we'll accept it. But it would be nice to see the CL earlier.

@mikioh

This comment has been minimized.

Contributor

mikioh commented Nov 29, 2017

Will write a CL while watching Australian Open 2018, probably.

@rsc

This comment has been minimized.

Contributor

rsc commented Dec 4, 2017

This should be put on hold until it is actually approved and has an RFC number.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment