Quantcast
Channel: Active questions tagged windows - Super User
Viewing all articles
Browse latest Browse all 9146

Set wsl2 to use host nameserver

$
0
0

I'm using wsl2 on Windows 11, and I recently encountered a problem where when I change networks, the wsl2 dns (nameserver at resolve.conf) address doesn't update, to match, and there for cannot lookup any domains.

I change the dns configuration often on my computer (work related) and I can't just set the nameserver to be 1.1.1.1 or something like that.is there a way to tell the wsl to inherit the host (windows), and call upon it each time?


Viewing all articles
Browse latest Browse all 9146

Trending Articles