I mean you can set up a custom dns server in the server side.

DNS via tls will not pass to the client in wireguard settings.