I suggest you run this command to check the IP address of the WSL
netsh interface ip show config
and then make sure that this is the IP address used in your DNS configuration you have in Windows.