As the solution of this post says, you need to change the dns settings if the wireguard.
If you are not sure, pls post your wireguard config here. Please mark your endpoint and keys.