#1080058 wireguard-tools: wg-quick hangs indefinitely on system startup when DNS resolution is not working

Package:
wireguard-tools
Source:
wireguard-tools
Description:
fast, modern, secure kernel VPN tunnel (userland utilities)
Submitter:
Pascal Stumpf
Date:
2024-08-30 08:06:03 UTC
Severity:
normal
#1080058#5
Date:
2024-08-30 07:39:20 UTC
From:
To:
The systemd unit file /lib/systemd/system/wg-quick@.service sets

Environment=WG_ENDPOINT_RESOLUTION_RETRIES=infinity

With WireGuard configurations that use DNS names as endpoint definitions,
this results in an indefinite hang on system bootup when DNS is not available
or misconfigured.

The environment variable should be set to some sensible value, like 3 or 5.