juanfont / headscale

An open source, self-hosted implementation of the Tailscale control server
BSD 3-Clause "New" or "Revised" License
23.49k stars 1.29k forks source link

[Feature] Add SafeSurfer DoH #2028

Open mrbluecoat opened 3 months ago

mrbluecoat commented 3 months ago

Use case

Would like to use https://safesurfer.io DoH instead of NextDNS

Description

Ref https://github.com/juanfont/headscale/pull/940

Domains would be in the form of https://doh.safesurfer.io/{GUID}

Contribution

How can it be implemented?

Generalize https://github.com/juanfont/headscale/blob/4ad3f3c484c060b4bfb5d8762fa12a4e4529a672/hscontrol/mapper/mapper.go#L33 to a variable rather than a hard-coded constant

mrbluecoat commented 3 months ago

Control-D was recently added as another DoH provider: https://tailscale.com/kb/1403/control-d

Snuupy commented 3 months ago

same, but libredns https://doh.libredns.gr/dns-query