I have successfully setup openvpn server on my owrt x86 system and it has been working great with one exception...the network speed.
Now I want to try wireguard but after reading the openwrt guide and others I haven't seen where I can use my domain name to connect to the wireguard server. Right now my openvpn connects using my domain name which points to my IP and the IP gets updated via dynamic dns.
probably this will give some idea if owrt wiki did not answer your question. just generate a new config with default data and check client config for Endpoint section.
And I have to say it was easier overall to setup the openvpn server and clients versus wireguard.
The good news is my network speeds from my mobile device using 5G and connected to the wireguard vpn (into my home network) is amazingly leaps and bounds better.
With openvpn I was getting 30Mbps down on a good link despite being on 5G. With wireguard I was able to break 600Mbps down consistently. This is apparent when streaming from my emby server or accessing all other home network resources. So wireguard is definitely the improvement I needed.
The bad news, my local dns is not working.
With the openvpn setup I was able to browse all network resources via their hostname. With wireguard, this isn't happening. I have spent my last amount of free time I have for this week in trying to figure it out and I have been unsuccessful.
If anyone has any ideas that would be great.
While I am on 5G my device does get an IPv6 address along with an IPv4 address. My home ISP only provides me with an IPv4 address and so my local network is also all IPv4.
With that said, I think my local dns lookups might have something to do with my incoming connection being on IPv6 but I am not sure. I also have a pihole setup which, with no changes to pihole, was able to work just fine with openvpn.
Again any ideas on how to get (at the least) local dns working while connected to my home network through the wireguard server would be great.