Wiregurad with dns name in endpoint address

Started by nontii, May 20, 2021, 11:04:43 AM

Previous topic - Next topic
I have a site-to-site wireguard vpn setup between two sites and it works perfect, except when one of the sites changes ip-address.. Both wireguard setups are set with a dns-name as endpoint address to the other network and that works perfect. But if one if the sites change ip-address (yes they have dynamic assigned addresses, but changes very rarely) I have to disable and enable wireguard to pick up the change and do a new lookup for that particular dns-name. The dns change when the ip-address change so the issue is that wireguard does not pick up the change except when it is restarted.

Any solutions?