-
Notifications
You must be signed in to change notification settings - Fork 63
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
Request to add the same port to use different upstream #395
Comments
I don't think it's possible exactly like in the example. Though what you should be able to do is setup different interfaces, and then have a listener on each. |
I want to use the same port and then decide which upstream to use depending on the domain name |
You can do that much more easily with a single listener that receives the query, then either a router or a blocklist behind it to send it upstream to the right place |
I still don't quite understand how to distinguish them. For example, if I build the dns-over-tls server: no-block.example.com:853, the upstream is clean and does not block ads. However, the upstream of the dns-over-tls server block.example.com:853 with ads removed is the upstream after ads are removed. I don't know how to configure it now. |
Hmm, if you want to have two different listeners on the same host with the client being able to choose, you could setup 2 different interfaces (with different IPs) on the host. So basically |
I only have one public IP address for the same host, so it’s a bit difficult. |
With DoH it would be possible to do something like that (not implemented yet though), since the HTTP headers which contain the name the client used would be available to the listener. |
Yes doh I can do this using nginx |
This should work:
Not sure it works with P.S. Make sure your certicate used, have both domains/servernames in it. |
Thanks for taking the time to test it. |
for example:
The text was updated successfully, but these errors were encountered: