Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DNS resolution broken in WSL1, even with resolv.conf override. DNS in WSL2 works. #11220

Open
2 tasks done
Sieboldianus opened this issue Feb 28, 2024 · 2 comments
Open
2 tasks done
Labels

Comments

@Sieboldianus
Copy link

Sieboldianus commented Feb 28, 2024

Windows Version

Windows 11 Pro 22631.3155

WSL Version

2.0.15.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

5.15.133.1-1

Distro Version

Debian 12 (bookworm)

Other Software

I have Cisco Anyconnect and OpenVPN installed, but not activated. If activated, I see the same behavior.

Repro Steps

I am trying to set up WSL1 in a new company network. However, DNS is completely broken for me, even if I override /etc/resolv.conf wsith a nameserver (e.g. nameserver 8.8.8.8), I will always get:

ping google.de
> ping: google.de: Temporary failure in name resolution

Expected Behavior

DNS resolution works.

Actual Behavior

nslookup will return an anwser only on second try:

nslookup google.de
;; communications error to 192.9.200.66#53: timed out
Server:         192.9.200.66
Address:        192.9.200.66#53

Non-authoritative answer:
Name:   google.de
Address: 142.251.209.131
Name:   google.de
Address: 2a00:1450:4005:802::2003

Note:

  • apt update and apt install do always work, for some reason; with some delay though.
  • DNS resolution always works in WSL2

Diagnostic Logs

I tested different things:

  • WSL Kernel Versions 1.3.17.0, 2.0.14.0, 2.0.15.0, 2.1.0.0, 2.1.1.0, 2.1.3.0

    • 1.3.17.0, 2.0.14.0, 2.0.15.0 will lead to the same issue
    • 2.1.0.0, 2.1.1.0, 2.1.3.0 WSL1 won't start at all
  • Linux Distros Debian 12 and Ubuntu 22.04, both the same

  • Overriding /etc/resolv.conf -> no effect

    host google.com
    ;; communications error to 8.8.8.8#53: timed out
    google.com has address 142.251.209.142
    google.com has IPv6 address 2a00:1450:4005:801::200e
    google.com mail is handled by 10 smtp.google.com
    

    IPv6 seems to work:

    getent hosts google.com
    > 2a00:1450:4005:801::200e google.com
    
  • Modifying /etc/wsl.conf

    [network]
    networkingMode=mirrored
    

    and

    [network]
    dnsTunneling=true
    networkingMode=nat
    

    both have no effect.

  • modifying /etc/gai.conf so that IPv4 is preferred:

    #For sites which prefer IPv4 connections change the last line to
    precedence ::ffff:0:0/96 100
    ...
    #    For sites which use site-local IPv4 addresses behind NAT there is
    #    the problem that even if IPv4 addresses are preferred they do not
    #    have the same scope and are therefore not sorted first.  To change
    #    this use only these rules:
    #
    scopev4 ::ffff:169.254.0.0/112  2
    scopev4 ::ffff:127.0.0.0/104    2
    scopev4 ::ffff:0.0.0.0/96       14
    

    has no effect

When I am connected via OpenVPN or CiscoVPN, I see the same issues:

nslookup google.com
;; communications error to 141.30.1.1#53: timed out
Server:         141.30.1.1
Address:        141.30.1.1#53

Non-authoritative answer:
Name:   google.com
Address: 142.250.181.206
Name:   google.com
Address: 2a00:1450:4005:802::200e

If I do nslookup interactively, the timeout will only appear on the first try (I assume all else are cached afterwards):

nslookup
google.de
> ;; communications error to 141.30.1.1#53: timed out
> Server:         141.30.1.1
> Address:        141.30.1.1#53
google.de
> Server:         141.30.1.1
> Address:        141.30.1.1#53

> Non-authoritative answer:
> Name:   google.de
> Address: 142.250.181.195
> Name:   google.de
> Address: 2a00:1450:4005:801::2003

I went through all the recommendations in Troubleshooting Windows Subsystem for Linux, especially Troubleshooting DNS in WSL, without success.

These are some logs for debugging:

ipconfig /all
Windows IP Configuration

   Host Name . . . . . . . . . . . . : LAP-xxx
   Primary Dns Suffix  . . . . . . . :
   Node Type . . . . . . . . . . . . : Hybrid
   IP Routing Enabled. . . . . . . . : No
   WINS Proxy Enabled. . . . . . . . : No
   DNS Suffix Search List. . . . . . : intranet-mycompany.com
                                       another-company.com
                                       dip.another-company.com

Ethernet adapter Ethernet:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Intel(R) Ethernet Connection (13) I219-LM
   Physical Address. . . . . . . . . : E4-46-B0-0A-D4-B9
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes

Unknown adapter OpenVPN Wintun:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Wintun Userspace Tunnel
   Physical Address. . . . . . . . . :
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Ethernet adapter vEthernet (Default Switch):

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Hyper-V Virtual Ethernet Adapter
   Physical Address. . . . . . . . . : 00-15-5D-0B-63-01
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::c391:94e8:d9f6:3b6d%96(Preferred)
   IPv4 Address. . . . . . . . . . . : 172.29.16.1(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.240.0
   Default Gateway . . . . . . . . . :
   DHCPv6 IAID . . . . . . . . . . . : 1610618205
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-2D-26-BA-FB-E4-46-B0-0A-D4-B9
   NetBIOS over Tcpip. . . . . . . . : Enabled

Ethernet adapter vEthernet (WSL):

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Hyper-V Virtual Ethernet Adapter #2
   Physical Address. . . . . . . . . : 00-15-5D-92-ED-7C
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::3678:2a26:e06b:5f1c%119(Preferred)
   IPv4 Address. . . . . . . . . . . : 172.30.80.1(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.240.0
   Default Gateway . . . . . . . . . :
   DHCPv6 IAID . . . . . . . . . . . : 1996494173
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-2D-26-BA-FB-E4-46-B0-0A-D4-B9
   NetBIOS over Tcpip. . . . . . . . : Enabled

Ethernet adapter Ethernet 3:

   Connection-specific DNS Suffix  . : intranet-mycompany.com
   Description . . . . . . . . . . . : Realtek USB GbE Family Controller
   Physical Address. . . . . . . . . : 98-EE-CB-B2-D1-D3
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::710d:c91a:620f:8754%28(Preferred)
   IPv4 Address. . . . . . . . . . . : 192.9.200.211(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Lease Obtained. . . . . . . . . . : Donnerstag, 22. Februar 2024 09:48:19
   Lease Expires . . . . . . . . . . : Samstag, 24. Februar 2024 07:46:59
   Default Gateway . . . . . . . . . : 192.9.200.70
   DHCP Server . . . . . . . . . . . : 192.9.200.62
   DHCPv6 IAID . . . . . . . . . . . : 1150873291
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-2D-26-BA-FB-E4-46-B0-0A-D4-B9
   DNS Servers . . . . . . . . . . . : 192.9.200.66
   NetBIOS over Tcpip. . . . . . . . : Enabled

Unknown adapter OpenVPN TAP-Windows6:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : TAP-Windows Adapter V9
   Physical Address. . . . . . . . . : 00-FF-01-4B-12-DB
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes

Unknown adapter OpenVPN Data Channel Offload:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : OpenVPN Data Channel Offload
   Physical Address. . . . . . . . . :
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes

Wireless LAN adapter LAN-Verbindung* 1:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft Wi-Fi Direct Virtual Adapter
   Physical Address. . . . . . . . . : C4-BD-E5-A6-C3-50
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes

Wireless LAN adapter LAN-Verbindung* 2:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft Wi-Fi Direct Virtual Adapter #2
   Physical Address. . . . . . . . . : C6-BD-E5-A6-C3-4F
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Wireless LAN adapter WLAN:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . : dip.another-company.com
   Description . . . . . . . . . . . : Intel(R) Wi-Fi 6 AX201 160MHz
   Physical Address. . . . . . . . . : C4-BD-E5-A6-C3-4F
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes

Mobile Broadband adapter Mobilfunk:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Generic Mobile Broadband Adapter
   Physical Address. . . . . . . . . : 9C-95-90-47-5E-5E
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes
ipconfig /all | findstr "Gateway"
> C:\Windows\System32>ipconfig /all | findstr "Gateway"
   Default Gateway . . . . . . . . . : 192.9.200.70
Get-NetFirewallProfile -PolicyStore ActiveStore
> Get-NetFirewallProfile -PolicyStore ActiveStore
Name                            : Domain
Enabled                         : True
DefaultInboundAction            : Block
DefaultOutboundAction           : Block
AllowInboundRules               : True
AllowLocalFirewallRules         : True
AllowLocalIPsecRules            : True
AllowUserApps                   : True
AllowUserPorts                  : True
AllowUnicastResponseToMulticast : True
NotifyOnListen                  : True
EnableStealthModeForIPsec       : False
LogFileName                     : %systemroot%\system32\LogFiles\Firewall\pfirewall.log
LogMaxSizeKilobytes             : 4096
LogAllowed                      : False
LogBlocked                      : False
LogIgnored                      : False
DisabledInterfaceAliases        :

> Name                            : Private
Enabled                         : True
DefaultInboundAction            : Block
DefaultOutboundAction           : Block
AllowInboundRules               : True
AllowLocalFirewallRules         : True
AllowLocalIPsecRules            : True
AllowUserApps                   : True
AllowUserPorts                  : True
AllowUnicastResponseToMulticast : True
NotifyOnListen                  : True
EnableStealthModeForIPsec       : False
LogFileName                     : %systemroot%\system32\LogFiles\Firewall\pfirewall.log
LogMaxSizeKilobytes             : 4096
LogAllowed                      : False
LogBlocked                      : False
LogIgnored                      : False
DisabledInterfaceAliases        :

> Name                            : Public
Enabled                         : True
DefaultInboundAction            : Block
DefaultOutboundAction           : Block
AllowInboundRules               : True
AllowLocalFirewallRules         : True
AllowLocalIPsecRules            : True
AllowUserApps                   : True
AllowUserPorts                  : True
AllowUnicastResponseToMulticast : True
NotifyOnListen                  : True
EnableStealthModeForIPsec       : False
LogFileName                     : %systemroot%\system32\LogFiles\Firewall\pfirewall.log
LogMaxSizeKilobytes             : 4096
LogAllowed                      : False
LogBlocked                      : False
LogIgnored                      : False
DisabledInterfaceAliases        :
nano /etc/nsswitch.conf
> # /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.

passwd:         files systemd
group:          files systemd
shadow:         files systemd
gshadow:        files systemd

hosts:          files dns
networks:       files

protocols:      db files
services:       db files
ethers:         db files
rpc:            db files

netgroup:       nis
dig @192.9.200.66 google.org
;; communications error to 192.9.200.66#53: timed out

; <<>> DiG 9.18.24-1-Debian <<>> @192.9.200.66 google.org
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 7378
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;google.org.                    IN      A

;; ANSWER SECTION:
google.org.             300     IN      A       216.239.32.27

;; Query time: 49 msec
;; SERVER: 192.9.200.66#53(192.9.200.66) (UDP)
;; WHEN: Wed Feb 28 08:49:32 CET 2024
;; MSG SIZE  rcvd: 44
netstat -rn | more (with metrics, with Cisco VPN on)
===========================================================================
Interface List
 11...e4 46 b0 0a d4 b9 ......Intel(R) Ethernet Connection (13) I219-LM
 33...........................Wintun Userspace Tunnel
  2...00 ff 01 4b 12 db ......TAP-Windows Adapter V9
 22...........................OpenVPN Data Channel Offload
 29...c4 bd e5 a6 c3 50 ......Microsoft Wi-Fi Direct Virtual Adapter
 38...c6 bd e5 a6 c3 4f ......Microsoft Wi-Fi Direct Virtual Adapter #2
  7...c4 bd e5 a6 c3 4f ......Intel(R) Wi-Fi 6 AX201 160MHz
  1...........................Software Loopback Interface 1
 23...9c 95 90 47 5e 5e ......Generic Mobile Broadband Adapter
 16...00 05 9a 3c 7a 00 ......Cisco AnyConnect Secure Mobility Client Virtual Miniport Adapter for Windows x64
===========================================================================

IPv4 Route Table
===========================================================================
Active Routes:
Network Destination        Netmask          Gateway       Interface  Metric
          0.0.0.0          0.0.0.0       172.16.0.1    172.16.118.36     35
          0.0.0.0          0.0.0.0    192.168.254.1   192.168.254.34   6001
        127.0.0.0        255.0.0.0         On-link         127.0.0.1    331
        127.0.0.1  255.255.255.255         On-link         127.0.0.1    331
  127.255.255.255  255.255.255.255         On-link         127.0.0.1    331
     141.30.1.225  255.255.255.255       172.16.0.1    172.16.118.36     36
       172.16.0.0      255.255.0.0         On-link     172.16.118.36    291
       172.16.0.0      255.255.0.0    192.168.254.1   192.168.254.34   6001
    172.16.118.36  255.255.255.255         On-link     172.16.118.36    291
   172.16.255.255  255.255.255.255         On-link     172.16.118.36    291
    192.168.254.0    255.255.255.0         On-link    192.168.254.34   6256
   192.168.254.34  255.255.255.255         On-link    192.168.254.34   6256
  192.168.254.255  255.255.255.255         On-link    192.168.254.34   6256
    193.174.15.20  255.255.255.255       172.16.0.1    172.16.118.36     36
        224.0.0.0        240.0.0.0         On-link         127.0.0.1    331
        224.0.0.0        240.0.0.0         On-link     172.16.118.36    291
        224.0.0.0        240.0.0.0         On-link    192.168.254.34   6256
  255.255.255.255  255.255.255.255         On-link         127.0.0.1    331
  255.255.255.255  255.255.255.255         On-link     172.16.118.36    291
  255.255.255.255  255.255.255.255         On-link    192.168.254.34   6256
===========================================================================
Persistent Routes:
  None

IPv6 Route Table
===========================================================================
Active Routes:
 If Metric Network Destination      Gateway
 16   6001 ::/0                     On-link
  1    331 ::1/128                  On-link
 16   6256 fe80::/64                On-link
 16   6256 fe80::3a33:694d:2737:5d3c/126
                                    On-link
 16   6256 fe80::3a33:694d:2737:5d3e/128
                                    On-link
 16   6256 fe80::60c5:d1ad:79f0:8092/128
                                    On-link
  7    291 fe80::7ebb:e540:9c64:9502/128
                                    On-link
  1    331 ff00::/8                 On-link
  7    291 ff00::/8                 On-link
===========================================================================
ip route show
none 224.0.0.0/4 dev eth0 proto unspec metric 256
none 255.255.255.255 dev eth0 proto unspec metric 256
none default via 192.9.200.70 dev eth1 proto unspec metric 0
none 192.9.200.0/24 dev eth1 proto unspec metric 256
none 192.9.200.211 dev eth1 proto unspec metric 256
none 192.9.200.255 dev eth1 proto unspec metric 256
none 224.0.0.0/4 dev eth1 proto unspec metric 256
none 255.255.255.255 dev eth1 proto unspec metric 256
none 127.0.0.0/8 dev lo proto unspec metric 256
none 127.0.0.1 dev lo proto unspec metric 256
none 127.255.255.255 dev lo proto unspec metric 256
none 224.0.0.0/4 dev lo proto unspec metric 256
none 255.255.255.255 dev lo proto unspec metric 256
none 224.0.0.0/4 dev eth2 proto unspec metric 256
none 255.255.255.255 dev eth2 proto unspec metric 256
none 224.0.0.0/4 dev eth3 proto unspec metric 256
none 255.255.255.255 dev eth3 proto unspec metric 256
none 224.0.0.0/4 dev eth4 proto unspec metric 256
none 255.255.255.255 dev eth4 proto unspec metric 256
none 224.0.0.0/4 dev wifi0 proto unspec metric 256
none 255.255.255.255 dev wifi0 proto unspec metric 256
none 224.0.0.0/4 dev wifi1 proto unspec metric 256
none 255.255.255.255 dev wifi1 proto unspec metric 256
none 224.0.0.0/4 dev wifi2 proto unspec metric 256
none 255.255.255.255 dev wifi2 proto unspec metric 256
none 224.0.0.0/4 dev eth5 proto unspec metric 256
none 255.255.255.255 dev eth5 proto unspec metric 256
Get-DnsClient
InterfaceAlias               Interface ConnectionSpecificSuffix ConnectionSpecificSuffix RegisterThisConn UseSuffixWhen
                             Index                              SearchList               ectionsAddress   Registering
--------------               --------- ------------------------ ------------------------ ---------------- -------------
Ethernet                            11                          {}                       True             False
OpenVPN Wintun                      33                          {}                       True             False
Ethernet 3                          28 intranet-mycompany.com   {}                       True             False
OpenVPN TAP-Windows6                 2 private.myhome.com       {}                       True             False
OpenVPN Data Channel Offload        22                          {}                       True             False
WLAN                                 7 dip.someothercompany.com {}                       True             False
LAN-Verbindung* 1                   29                          {}                       True             False
LAN-Verbindung* 2                   38                          {}                       True             False
Loopback Pseudo-Interface 1          1                          {}                       True             False
Mobilfunk                           23                          {}                       True             False
nslookup with set d2 (debug)
> google.de
addlookup()
make_empty_lookup()
make_empty_lookup() = 0x7f7a60801000->references = 1
looking up google.de
start_lookup()
setup_lookup(0x7f7a60801000)
resetting lookup counter.
cloning server list
clone_server_list()
make_server(141.30.1.1)
make_server(141.76.14.1)
idn_textname: google.de
using root origin
recursive query
add_question()
starting to render the message
done rendering
create query 0x7f7a60843000 linked to lookup 0x7f7a60801000
dighost.c:2177:lookup_attach(0x7f7a60801000) = 2
dighost.c:2690:new_query(0x7f7a60843000) = 1
create query 0x7f7a608431c0 linked to lookup 0x7f7a60801000
dighost.c:2177:lookup_attach(0x7f7a60801000) = 3
dighost.c:2690:new_query(0x7f7a608431c0) = 1
do_lookup()
start_udp(0x7f7a60843000)
dighost.c:3302:query_attach(0x7f7a60843000) = 2
working on lookup 0x7f7a60801000, query 0x7f7a60843000
dighost.c:3347:query_attach(0x7f7a60843000) = 3
udp_ready()
udp_ready(0x7f7a608a4000, success, 0x7f7a60843000)
lock_lookup dighost.c:3188
success
dighost.c:3189:lookup_attach(0x7f7a60801000) = 4
dighost.c:3262:query_attach(0x7f7a60843000) = 4
recving with lookup=0x7f7a60801000, query=0x7f7a60843000, handle=0x7f7a608a4000
recvcount=1
have local timeout of 5000
dighost.c:3135:query_attach(0x7f7a60843000) = 5
sending a request
sendcount=1
dighost.c:1761:query_detach(0x7f7a60843000) = 4
dighost.c:3282:query_detach(0x7f7a60843000) = 3
dighost.c:3283:lookup_detach(0x7f7a60801000) = 3
unlock_lookup dighost.c:3284
send_done(0x7f7a608a4000, success, 0x7f7a60843000)
sendcount=0
lock_lookup dighost.c:2765
success
dighost.c:2769:lookup_attach(0x7f7a60801000) = 4
dighost.c:2787:query_detach(0x7f7a60843000) = 2
dighost.c:2788:lookup_detach(0x7f7a60801000) = 3
check_if_done()
list empty
unlock_lookup dighost.c:2792
recv_done(0x7f7a608a4000, timed out, 0x7f7a617ef1c0, 0x7f7a60843000)
lock_lookup dighost.c:3957
success
recvcount=0
dighost.c:3962:lookup_attach(0x7f7a60801000) = 4
;; communications error to 141.30.1.1#53: timed out
create query 0x7f7a60843380 linked to lookup 0x7f7a60801000
dighost.c:2177:lookup_attach(0x7f7a60801000) = 5
dighost.c:4050:new_query(0x7f7a60843380) = 1
making new UDP request, 2 tries left
start_udp(0x7f7a60843380)
dighost.c:3302:query_attach(0x7f7a60843380) = 2
working on lookup 0x7f7a60801000, query 0x7f7a60843380
dighost.c:3347:query_attach(0x7f7a60843380) = 3
check_if_queries_done(0x7f7a60801000)
there is a pending query 0x7f7a60843380
dighost.c:4556:query_detach(0x7f7a60843000) = 1
dighost.c:4564:lookup_detach(0x7f7a60801000) = 4
unlock_lookup dighost.c:4568
udp_ready()
udp_ready(0x7f7a608a4300, success, 0x7f7a60843380)
lock_lookup dighost.c:3188
success
dighost.c:3189:lookup_attach(0x7f7a60801000) = 5
dighost.c:3262:query_attach(0x7f7a60843380) = 4
recving with lookup=0x7f7a60801000, query=0x7f7a60843380, handle=0x7f7a608a4300
recvcount=1
have local timeout of 5000
dighost.c:3135:query_attach(0x7f7a60843380) = 5
sending a request
sendcount=1
dighost.c:1761:query_detach(0x7f7a60843380) = 4
dighost.c:3282:query_detach(0x7f7a60843380) = 3
dighost.c:3283:lookup_detach(0x7f7a60801000) = 4
unlock_lookup dighost.c:3284
send_done(0x7f7a608a4300, success, 0x7f7a60843380)
sendcount=0
lock_lookup dighost.c:2765
success
dighost.c:2769:lookup_attach(0x7f7a60801000) = 5
dighost.c:2787:query_detach(0x7f7a60843380) = 2
dighost.c:2788:lookup_detach(0x7f7a60801000) = 4
check_if_done()
list empty
unlock_lookup dighost.c:2792
recv_done(0x7f7a608a4300, success, 0x7f7a617ebe90, 0x7f7a60843380)
lock_lookup dighost.c:3957
success
recvcount=0
dighost.c:3962:lookup_attach(0x7f7a60801000) = 5
before parse starts
after parse
printmessage()
Server:         141.30.1.1
Address:        141.30.1.1#53

clone_lookup()
make_empty_lookup()
make_empty_lookup() = 0x7f7a60802800->references = 1
Non-authoritative answer:
printsection()
Name:   google.de
Address: 172.217.16.67
still pending.
dighost.c:4556:query_detach(0x7f7a60843380) = 1
dighost.c:4558:_cancel_lookup()
canceling pending query 0x7f7a60843000, belonging to 0x7f7a60801000
dighost.c:2817:query_detach(0x7f7a60843000) = 0
dighost.c:2817:destroy_query(0x7f7a60843000) = 0
dighost.c:1719:lookup_detach(0x7f7a60801000) = 4
canceling pending query 0x7f7a60843380, belonging to 0x7f7a60801000
dighost.c:2817:query_detach(0x7f7a60843380) = 0
dighost.c:2817:destroy_query(0x7f7a60843380) = 0
dighost.c:1719:lookup_detach(0x7f7a60801000) = 3
canceling pending query 0x7f7a608431c0, belonging to 0x7f7a60801000
dighost.c:2817:query_detach(0x7f7a608431c0) = 0
dighost.c:2817:destroy_query(0x7f7a608431c0) = 0
dighost.c:1719:lookup_detach(0x7f7a60801000) = 2
check_if_done()
list full
pending lookup 0x7f7a60802800
dighost.c:4564:lookup_detach(0x7f7a60801000) = 1
clear_current_lookup()
lookup cleared
dighost.c:1852:lookup_detach(0x7f7a60801000) = 0
destroy_lookup
freeing server 0x7f7a60828000 belonging to 0x7f7a60801000
freeing server 0x7f7a60828a00 belonging to 0x7f7a60801000
start_lookup()
setup_lookup(0x7f7a60802800)
cloning server list
clone_server_list()
make_server(141.30.1.1)
make_server(141.76.14.1)
idn_textname: google.de
using root origin
recursive query
add_question()
starting to render the message
done rendering
create query 0x7f7a608431c0 linked to lookup 0x7f7a60802800
dighost.c:2177:lookup_attach(0x7f7a60802800) = 2
dighost.c:2690:new_query(0x7f7a608431c0) = 1
create query 0x7f7a60843380 linked to lookup 0x7f7a60802800
dighost.c:2177:lookup_attach(0x7f7a60802800) = 3
dighost.c:2690:new_query(0x7f7a60843380) = 1
do_lookup()
start_udp(0x7f7a608431c0)
dighost.c:3302:query_attach(0x7f7a608431c0) = 2
working on lookup 0x7f7a60802800, query 0x7f7a608431c0
dighost.c:3347:query_attach(0x7f7a608431c0) = 3
unlock_lookup dighost.c:4568
udp_ready()
udp_ready(0x7f7a608a4180, success, 0x7f7a608431c0)
lock_lookup dighost.c:3188
success
dighost.c:3189:lookup_attach(0x7f7a60802800) = 4
dighost.c:3262:query_attach(0x7f7a608431c0) = 4
recving with lookup=0x7f7a60802800, query=0x7f7a608431c0, handle=0x7f7a608a4180
recvcount=1
have local timeout of 5000
dighost.c:3135:query_attach(0x7f7a608431c0) = 5
sending a request
sendcount=1
dighost.c:1761:query_detach(0x7f7a608431c0) = 4
dighost.c:3282:query_detach(0x7f7a608431c0) = 3
dighost.c:3283:lookup_detach(0x7f7a60802800) = 3
unlock_lookup dighost.c:3284
send_done(0x7f7a608a4180, success, 0x7f7a608431c0)
sendcount=0
lock_lookup dighost.c:2765
success
dighost.c:2769:lookup_attach(0x7f7a60802800) = 4
dighost.c:2787:query_detach(0x7f7a608431c0) = 2
dighost.c:2788:lookup_detach(0x7f7a60802800) = 3
check_if_done()
list empty
unlock_lookup dighost.c:2792
recv_done(0x7f7a608a4180, success, 0x7f7a617ebe90, 0x7f7a608431c0)
lock_lookup dighost.c:3957
success
recvcount=0
dighost.c:3962:lookup_attach(0x7f7a60802800) = 4
before parse starts
after parse
printmessage()
printsection()
Name:   google.de
Address: 2a00:1450:4005:802::2003
still pending.
dighost.c:4556:query_detach(0x7f7a608431c0) = 1
dighost.c:4558:_cancel_lookup()
canceling pending query 0x7f7a608431c0, belonging to 0x7f7a60802800
dighost.c:2817:query_detach(0x7f7a608431c0) = 0
dighost.c:2817:destroy_query(0x7f7a608431c0) = 0
dighost.c:1719:lookup_detach(0x7f7a60802800) = 3
canceling pending query 0x7f7a60843380, belonging to 0x7f7a60802800
dighost.c:2817:query_detach(0x7f7a60843380) = 0
dighost.c:2817:destroy_query(0x7f7a60843380) = 0
dighost.c:1719:lookup_detach(0x7f7a60802800) = 2
check_if_done()
list empty
dighost.c:4564:lookup_detach(0x7f7a60802800) = 1
clear_current_lookup()
lookup cleared
dighost.c:1852:lookup_detach(0x7f7a60802800) = 0
destroy_lookup
freeing server 0x7f7a60828a00 belonging to 0x7f7a60802800
freeing server 0x7f7a60828000 belonging to 0x7f7a60802800
start_lookup()
check_if_done()
list empty
shutting down
dighost_shutdown()
unlock_lookup dighost.c:4568
arp -a
Interface: 172.16.118.36 --- 0x7
  Internet Address      Physical Address      Type
  172.16.0.1            00-a0-c9-04-02-01     dynamic
  172.16.255.255        ff-ff-ff-ff-ff-ff     static
  224.0.0.2             01-00-5e-00-00-02     static
  224.0.0.22            01-00-5e-00-00-16     static
  224.0.0.251           01-00-5e-00-00-fb     static
  224.0.0.252           01-00-5e-00-00-fc     static
  239.255.255.250       01-00-5e-7f-ff-fa     static
  255.255.255.255       ff-ff-ff-ff-ff-ff     static

Interface: 192.168.254.47 --- 0x10
  Internet Address      Physical Address      Type
  192.168.254.1         00-11-22-33-44-55     dynamic
  192.168.254.255       ff-ff-ff-ff-ff-ff     static
  224.0.0.22            01-00-5e-00-00-16     static
  224.0.0.251           01-00-5e-00-00-fb     static
  224.0.0.252           01-00-5e-00-00-fc     static
  239.255.255.250       01-00-5e-7f-ff-fa     static
  255.255.255.255       ff-ff-ff-ff-ff-ff     static
@Sieboldianus Sieboldianus changed the title DNS resolution broken in WSL, even with resolv.conf override. DNS in WSL2 works. DNS resolution broken in WSL1, even with resolv.conf override. DNS in WSL2 works. Feb 28, 2024
Copy link

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@Sieboldianus
Copy link
Author

Sieboldianus commented Feb 28, 2024

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

Sorry AI, all of these are about WSL2!

@OneBlue OneBlue added the wsl1 label Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants