rancher-sandbox / rancher-desktop

Container Management and Kubernetes on the Desktop
https://rancherdesktop.io
Apache License 2.0
5.99k stars 282 forks source link

DNS issues from my other WSL instances #6403

Open Larswa opened 9 months ago

Larswa commented 9 months ago

Im running Rancher Desktop and WSL2 on windows 10. Using the tunnel allows me to run Rancher Desktop while on my Cisco Secure Client VPN connection. But it kills DNS for me on my Ubuntu WSL2 instance

Here is an example of a lookup that worked just before before I enabled the network tunnel.

Anything I can do to make the two work together? I don't fully understand the stack, so not sure what swallows the packages that should go to port 53.

       │ File: /etc/resolv.conf
───────┼───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
   1   │ # This file was automatically generated by WSL. To stop automatic generation of this file, add the following entry to /etc/wsl.conf:
   2   │ # [network]
   3   │ # generateResolvConf = false
   4   │ nameserver 172.25.112.1
───────┴───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
(⎈|rancher-desktop:default)➜  ~ dig dr.dk
;; communications error to 172.25.112.1#53: timed out
;; communications error to 172.25.112.1#53: timed out
;; communications error to 172.25.112.1#53: timed out

; <<>> DiG 9.18.18-0ubuntu0.22.04.1-Ubuntu <<>> dr.dk
;; global options: +cmd
;; no servers could be reached

172.25.112.1 is the default WSL ip address on windows

Ethernet adapter vEthernet (WSL):

   Connection-specific DNS Suffix  . :
   Link-local IPv6 Address . . . . . : fe80::f53:f8f8:fab4:12c8%102
   IPv4 Address. . . . . . . . . . . : 172.25.112.1
   Subnet Mask . . . . . . . . . . . : 255.255.240.0
   Default Gateway . . . . . . . . . :

I also tried with a fixed resolv.conf with the usual suspects in there ... 1.1.1.1 and so on ... no difference. It seems to be the packages that are swallowed somewhere on the way out of the Ubuntu WSL machine.

The second I exit Rancher Desktop, DNS lookup is working again.

jandubois commented 9 months ago

@Larswa I've transferred this issue to the rancher-desktop repo to make it easier for us to track on the board with milestones and labels.