Is a hostname a valid value value for Endpoint?

Jason A. Donenfeld Jason at
Fri Jun 22 01:55:56 CEST 2018

The endpoint can contain a domain, yes.

However, the correct behavior is to look up that domain using the DNS
server that exists prior to turning on WireGuard. Otherwise you'd have
a chicken&egg problem with tunnel-only accessible DNS servers.

More information about the WireGuard mailing list