I want to connect to my Wireguard server on my home server.
To prevent DNS leaks, I have specified the DNS server of my home network as WAN DNS server. This also works.
So that Openwrt can query the Dyndns of my home server before the Wireguard tunnel is established, I have specified my Dyndns and 8.8.8.8 in Dnsmasq as DNS Forwarding.
This does not work somehow:
In the system log I get the message
Wireguard_monitor: VPN endpoint Dyndns is Not responding, trying to reresolve
In addition, I cannot ping my Dyndns. Nevertheless, the tunnel works strangely enough
This suggests that your tunnel isn't working.... but...
Pings depend on the configuration of the wan firewall, so that may or may not be expected... but you said the tunnel is working, so that seems to contradict the above message.
All that said, let's see your configs so we can start to understand the details:
Please connect to your OpenWrt device using ssh and copy the output of the following commands and post it here using the "Preformatted text </> " button:
Remember to redact passwords, MAC addresses and any public IP addresses you may have:
ubus call system board
cat /etc/config/network
cat /etc/config/firewall
wg show
This indicates that you do not have a handshake. So in addition to @egc's guidance regarding DNS, you need to figure out why you are not getting a handshake.
I added the DNS Servers, but there is still no connection.
I have two suspicions. Either it is because I have removed the default DNS for all interfaces and only entered the IP of my DNS in the home network for the WG and WAN interface. Or it is because the WG client cannot access my home network because the WG server is missing a route to the home network.
The only problem is with the DNS server. According to the instructions, the following should be specified in Dnsmasq:
list server '<DNS_server_to_forward_request_to_(peer_internal_wg0_ip)>'
I don't understand what I have to enter here. It's not the IP of my router/DNS server in the home network, it doesn't work. If I enter 8.8.8.8, it works. But then I have potential DNS leaks.