blocky icon indicating copy to clipboard operation
blocky copied to clipboard

feature: passing client name to upstream server

Open sweepies opened this issue 3 years ago • 3 comments

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

sweepies avatar May 24 '22 23:05 sweepies

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

0xERR0R avatar Jun 09 '22 10:06 0xERR0R

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[bot] avatar Aug 04 '22 09:08 github-actions[bot]

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[bot] avatar Nov 03 '22 04:11 github-actions[bot]