Check How to troubleshoot WireGuard and check your wireguard config file. I assume the DNS server is the issue here.