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

Custom DNS local network config #1620

Open
neumachen opened this issue Oct 6, 2024 · 2 comments
Open

Custom DNS local network config #1620

neumachen opened this issue Oct 6, 2024 · 2 comments
Labels

Comments

@neumachen
Copy link

I'm wondering if it's possible to use Custom DNS with local IP and port. For example, I have a home server running in docker swarm, and I would like to map a domain to an IP address and it's port. How would you go on about that?

@TheoTechnicguy
Copy link
Contributor

If I understood your question correctly, you would like to be able to do something like this:

Request: mypage.local
Answer: 172.24.0.4:8080

Is that correct?

If that is the case, then you are most likely searching for service records (SRV), which tell a client where exactly to find a service. It is specified by RFC2782, but the Wikipedia page should be more appropriate for your purposes.

There is a catch, however: clients must be SRV-aware and -supporting. If you are hoping to run two web pages over two different ports like 8080 and 8081, this will not work as most (or all, as far as I know) web browsers do not support SRV records.

Copy link
Contributor

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the Stale label Jan 21, 2025
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

2 participants