ho-ansible / tinc

Ansible role: mesh-based VPN
MIT License
1 stars 0 forks source link

Use VPN DNS server as primary #1

Open seanho00 opened 6 years ago

seanho00 commented 6 years ago

Have not extensively tested if it works to rely on VPN DNS server as default (not just to resolve VPN hostnames), and use fallback DNS only if VPN is not up.

Close when this has been tested.

https://github.com/ho-ansible/ansible/issues/53

seanho00 commented 6 years ago

I suspect there is an issue on OpenVZ (where systemd-networkd's DHCP client doesn't have kernel support, so I need to use dhcpcd). I hard-code the DNS server into the VPN interface's systemd *.network config file. In theory, when the interface is up, systemd-resolved should use that interface's DNS server. However, it cannot reach it.

Routing issue? systemd-networkd?