Configure DNS routing in wireguard

Solution 1:

I found a solution, it was stupid, it was enough to register the same dns 10.0.0.1 on the main connection as on the wireguard interface