<div dir="ltr">Hi,<div><br></div><div>I'm not sure if this a problem of wg/wg-quick or my system but maybe somebody can help.</div><div><br></div><div>I have a wg0.conf for wg-quick and enabled the systemd service (systemctl enable wg-quick@wg0).</div><div>After a reboot, I have the following status of this service:</div><div>--</div><div><div>Feb 07 08:15:13 <span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">domain</span>.de systemd[1]: Starting WireGuard via wg-quick(8) for wg0...</div><div>Feb 07 08:15:14 <span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">domain</span>.de wg-quick[335]: [#] ip link add wg0 type wireguard</div><div>Feb 07 08:15:14 <span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">domain</span>.de wg-quick[335]: [#] wg setconf wg0 /dev/fd/63</div><div>Feb 07 08:15:14 <span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">domain</span>.de wg-quick[335]: Name or service not known: `<a href="http://remote.de:25555">remote.de:25555</a>'</div><div>Feb 07 08:15:14 <span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">domain</span>.de wg-quick[335]: Configuration parsing error</div><div>Feb 07 08:15:14 <a href="http://domain.de">domain.de</a> wg-quick[335]: [#] ip link delete dev wg0</div><div>Feb 07 08:15:14 <a href="http://domain.de">domain.de</a> systemd[1]: wg-quick@wg0.service: Main process exited, code=exited, status=1/FAILURE</div><div>Feb 07 08:15:14 <span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">domain</span>.de systemd[1]: wg-quick@wg0.service: Failed with result 'exit-code'.</div><div>Feb 07 08:15:14 <a href="http://domain.de">domain.de</a> systemd[1]: Failed to start WireGuard via wg-quick(8) for wg0.</div></div><div><br></div><div>It looks for me like wireguard can't resolve my remote site at this moment. I tried a static resolv.conf file and also systemd-resolved. Both sites have dynamic IPs so I can't use direct IPs.</div><div>If I run "systemctl restart wg-quick@wg0" it works as expected, so my workaround is to add a 'sleep 5' to the service file. </div><div><br></div><div>Any better solutions or is this a "bug"? </div><div><br></div><div>Merci</div><div><br></div><div><br></div></div>