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

feature: passing client name to upstream server #538

Open
sweepies opened this issue May 24, 2022 · 3 comments
Open

feature: passing client name to upstream server #538

sweepies opened this issue May 24, 2022 · 3 comments
Labels
🔨 enhancement New feature or request
Milestone

Comments

@sweepies
Copy link

I'm using Blocky as a proxy to NextDNS for its web UI management and analytics visualization. I have configured clients to connect directly over DoH where possible, but for other devices I'd like to have Blocky forward the resolved client name (via rDNS) to the upstream.

For example, NextDNS expects it in the format of
https://dns.nextdns.io/<config_id>/<client_name> for DoH
<client_name>-<config_id>.dns.nextdns.io for DoT

I imagine the most reasonable way of doing this for wide compatibility would be a special placeholder in the upstream URL, like so:

upstream:
  default:
    - https://dns.nextdns.io/foo/${client_name}
    - ${client_name}-foo.dns.nextdns.io
@0xERR0R 0xERR0R added the 🔨 enhancement New feature or request label May 25, 2022
@0xERR0R
Copy link
Owner

0xERR0R commented Jun 9, 2022

Client can have multiple names, in this case only the first should be used

@github-actions
Copy link
Contributor

github-actions bot commented Aug 4, 2022

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

@github-actions
Copy link
Contributor

github-actions bot commented Nov 3, 2022

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.

@0xERR0R 0xERR0R added this to the future milestone Nov 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants