Just guessing but you’ve got a home network with a NAS you want to access remotely?
Regarding DNS, Wireguard is just a protocol and the standard Wireguard client is pretty stupid thus you have to specify everything manually for example which DNS server to use when connecting the tunnel, etc.
Perhaps some of these guides might help you with your specific problem: