Skip to content
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

local wildcard dns to localhost #3924

Open
webartoli opened this issue Oct 4, 2024 · 0 comments
Open

local wildcard dns to localhost #3924

webartoli opened this issue Oct 4, 2024 · 0 comments
Labels
Issue-Feature New feature or request Needs-PM Needs PM input Needs-Triage New issue that the core contributors need to triage

Comments

@webartoli
Copy link

Suggested new feature or improvement

I would like to register dns names with wildcard; something like

# ipv4
*.localhost   127.0.0.1
*.*.localhost 127.0.0.1

# ipv6
*.localhost   ::1
*.*.localhost ::1

Scenario

As a developer I need to have several services running locally. A typical use case is to point to localhost on different port and is messy.

In a microservices environment, a local application gateway is in place.

So having a tool that can alias localhost with different fqdn is awesome.
Something like: api.myproduct.localhost, myproduct.localhost, domain.myproduct.localhost.

Having multiple FQDNs on localhost also allows https, with tools like mkcert

Additional details

Chromium based browsers already do this. *.localhost just points to 127.0.0.1 on those browsers because that is a big need.

Some public services are available out there like localtest.me that perform this thing but there are several drawbacks.

It requires internet connection
local development in train/metro/boat should be an option

It may conflict with other network/security tools
Some enterprise gateways and general purpose routers like AVM FritzBox have a built-in DNS Rebind Protection that cannot be disabled by wildcard.

@webartoli webartoli added the Issue-Feature New feature or request label Oct 4, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage New issue that the core contributors need to triage label Oct 4, 2024
@vineeththomasalex vineeththomasalex added the Needs-PM Needs PM input label Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Feature New feature or request Needs-PM Needs PM input Needs-Triage New issue that the core contributors need to triage
Projects
None yet
Development

No branches or pull requests

2 participants