Important notices
Before you add a new report, we ask you kindly to acknowledge the following:
Describe the bug
If Internet / DNS is available after the wireguard service startet a connection to a wireguard peer which contains a dns name and not an ip doesnt come up. Only a wireguard service restart then leads to a successful connection.
To Reproduce
Steps to reproduce the behavior:
- Setup Wireguard where the remote peer is setup using a dns name
- Break DNS Resolving / Internet
- Reboot Opnsense
- Wait
- Enable DNS Resolving / Internet again
- Wireguard Tunnel is not up because the service couldnt resolve the remote peer DNS Name to an ip
Expected behavior
Tunnel comes up as soon as DNS Resolving works again
Additional context
It appears to be some kind of stale state in which wireguard says "oh i couldnt resolve the hostname" but doesnt recheck like every minute or so...