Upgrading to PortMaster 2.* breaks WSL 1 DNS
Opened this issue · 2 comments
WSL 1 unlike WSL 2 is not a virtual machine, it runs as a part of windows OS and creates special windows processes a.k.a pico processes. Although these processes were never properly detected by PM (as noted in #1135), they still worked correctly with PM < 2. After upgrading to 2.24 I am no more able to perform DNS requests from WSL 1 processes when PM is running.
$ strace -e trace=connect ping google.com
connect(5, {sa_family=AF_UNIX, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
connect(5, {sa_family=AF_UNIX, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
connect(5, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
connect(5, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
ping: google.com: Temporary failure in name resolution
+++ exited with 2 +++
$ strace -e trace=connect curl google.com
connect(3, {sa_family=AF_UNIX, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
connect(3, {sa_family=AF_UNIX, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
strace: Process 606 attached
[pid 606] connect(7, {sa_family=AF_UNIX, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
[pid 606] connect(7, {sa_family=AF_UNIX, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
[pid 606] connect(7, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
[pid 606] connect(7, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
[pid 606] +++ exited with 0 +++
curl: (6) Could not resolve host: google.com
+++ exited with 6 +++
additional info:
- changing nameserver in WSL 1 to e.g
8.8.8.8didn't help - "Default Network Action" is allow
- "Block Secure DNS Bypassing" is off
Greetings and welcome to our community! As this is the first issue you opened here, we wanted to share some useful infos with you:
- 🗣️ Our community on Discord is super helpful and active. We also have an AI-enabled support bot that knows Portmaster well and can give you immediate help.
- 📖 The Wiki answers all common questions and has many important details. If you can't find an answer there, let us know, so we can add anything that's missing.
This issue has been automatically marked as inactive because it has not had activity in the past two months.
If no further activity occurs, this issue will be automatically closed in one week in order to increase our focus on active topics.