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

Bypass etc/hosts for virtual domains #820

Open
wassim-ben-amor opened this issue Jun 17, 2022 · 1 comment
Open

Bypass etc/hosts for virtual domains #820

wassim-ben-amor opened this issue Jun 17, 2022 · 1 comment
Labels

Comments

@wassim-ben-amor
Copy link

What's the problem this feature will solve?

Using http-server -P parameter to use a local virtual domain, we still need to update /etc/hosts file to be able to access the local virtual domain using http-server.

Describe the solution you'd like

My idea is to find a way to use a new virtual domain without modifying /etc/hosts file. This can be achieved by using dns to modify the OS host file and use dns.lookup() to pull from the host file.

Alternative Solutions

Additional context

@wassim-ben-amor wassim-ben-amor changed the title Bypass /etc/hosts for virtual domains Bypass etc/hosts for virtual domains Jun 17, 2022
@github-actions
Copy link

This issue has been inactive for 180 days

@github-actions github-actions bot added the stale label Dec 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant