> Date: Tue, 7 Jul 2026 23:38:28 +0200
> From: Martijn van Wely <[email protected]>
> 
> Anyhow I found a man page for wg which suggests you can use an INI
> like config file like I would have on Linux and explicitly suggests
> you can use a url or an ip address to set the endpoint.

Perhaps someone has written such a tool that runs on NetBSD, but
nothing that NetBSD 10 or 11 ships with matches that description.

The NetBSD man pages are these:

https://man.NetBSD.org/NetBSD-10.x-BRANCH/wg.4
https://man.NetBSD.org/NetBSD-10.x-BRANCH/wgconfig.8

In NetBSD 10.x, the wgconfig(8) --endpoint option is restricted to a
numeric IP address: it is up to you to resolve a name to an address
beforehand, and up to you to reconfigure the wgN interface peer when
the name resolution changes.

In NetBSD 11.x, the wgconfig(8) --endpoint option was changed so that
if you pass a name, it will be resolved to an address, but wgconfig(8)
picks _one_ address, arbitrarily.  If you have a multihomed host, with
multiple A records or both A and AAAA records, only _one_ of those
addresses will be used, persistently, until you reconfigure.  And, as
above, it is still up to you to reconfigure the wgN interface peer
when the name resolution changes: neither wgconfig(8) nor wg(4) keeps
track of DNS TTLs.  (This change wasn't documented anywhere, though.)

Reply via email to