subspacecommunity / subspace

A fork of the simple WireGuard VPN server GUI community maintained
MIT License
1.8k stars 131 forks source link

Idea: custom DNS entries in the wg0.conf output; instead of the dnsmasq-forwarded DNS? #207

Open unquietwiki opened 3 years ago

unquietwiki commented 3 years ago

https://github.com/subspacecommunity/subspace/blob/872781cd23f8dbb7d32a80c3b72ee70884242ba3/cmd/subspace/handlers.go#L483

I found the line in the code wherein templated DNS entries go, if DNS is permitted. Rather than relying on the dnsmasq install; what if we wanted DNS to point to SAMBA/AD servers? I feel like a new template variable could be added, that would override the ones here?

belthesar commented 2 years ago

:+1: for this. This would also enable setting up search domains in the WG config.