Go to WireGuard

# eva_xiaomi_notebook client
[Interface]
PrivateKey = 888888888888888888888888888888888
Address = 10.0.0.3/24
DNS = 1.1.1.1

[Peer]
PublicKey = ddddddddddddddddddddddddddddddddddddddddddddddd
Endpoint = 188.225.25.237:51820
AllowedIPs = 0.0.0.0/0, ::/0
PersistentKeepalive = 0

For example if I host a wg server on home nas with dynamic ip, I sure can create DynDNS(duckDNS)

But can I use this domain name as Endpoint?