openziti / ziti-tunnel-sdk-c

Apache License 2.0
43 stars 16 forks source link

Configure DNS routing domains when using systemd-resolved on Linux #798

Open scareything opened 9 months ago

scareything commented 9 months ago

ziti-edge-tunnel currently sets itself up as a DNS server with systemd-resolved, but it doesn't set the "routing domains" to the specific domains that are being intercepted. This means that:

Setting the routing domains for the zitiN interface to the list of intercepted domains would solve these problems. This would also match the behavior that we see with the Desktop tunnelers.

qrkourier commented 9 months ago

We could hard code that behavior in ZET and it would be useful. Still, if ZET provided a configuration hook or plug-in runner for this, then I can imagine how useful that would be for both:

For example, if a domain name is added or removed to ZET's list of intercepts, it could sort and execute each in /opt/openziti/etc/domain-hooks.d/ with a parameter scheme like {include_hook} [add|del] DOMAIN.