Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upDNS Resolution fails after updating libc6 and/or libc-bin #2873
Comments
This comment has been minimized.
This comment has been minimized.
|
The strace shows the nameservers 192.168.1.1 and 8.8.8.8 both being tried and not responding. Do those addresses seem reasonable in your setup? It would be interesting to compare this against the working scenario. |
This comment has been minimized.
This comment has been minimized.
|
Yes - that is the contents of my /etc/resolv.conf. It is the information that existed before libc6 was upgraded - demonstrated working prior to the update. |
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
@ralphyz - I think what Brian is suggesting by |
This comment has been minimized.
This comment has been minimized.
Only difference I can see is 2.26 (from the linked strace)
2.23 (random
|
This comment has been minimized.
This comment has been minimized.
|
Nah wait... The message being sent is structurally different. Google might be just refusing to reply. Unless |
This comment has been minimized.
This comment has been minimized.
|
Here is a wget from Google (working): https://gist.github.com/ralphyz/35b66b611421329e8ebcca368cb83d6e |
This comment has been minimized.
This comment has been minimized.
|
I did an apt update with an strace: Then I updated libc6:
Then I ran the same apt command: Output from command:
|
This comment has been minimized.
This comment has been minimized.
|
@therealkenc the error shown in my original output was due to
and immediately after the install, I test to see if my DNS resolution is broken:
It is :( |
This comment has been minimized.
This comment has been minimized.
|
@ralphyz - I compared the two traces and there is not much interesting from the WSL perspective. There are few additional flags that are being passed (by As next step, I would recommend trying these steps on a native Kali setup, if you haven't already. |
This comment has been minimized.
This comment has been minimized.
Someone very highly motivated could update |
This comment has been minimized.
This comment has been minimized.
|
I am experiencing exact same issue with Ubuntu 18.04 and Debian 9. Using
|
This comment has been minimized.
This comment has been minimized.
|
To come back to my previous comment, I tracked the issue to having Kaspersky antivirus installed. Even disabling it did not work. The moment it was uninstalled WSL connectivity came back as it supposed to be. |
This comment has been minimized.
This comment has been minimized.
|
My system has this problem or something very similar. Would really like some help with this. The proximate cause is sendmmsg() fails and returns -1 EINVAL (Invalid argument): Here is strace from failed DNS lookup: And strace from working DNS lookup: The only difference between these DNS attempts is what LAN the computer is connected to. It seems that in the working case the system does not open /etc/resolv.conf. It stat's the file but doesn't open it. |
Your Windows build number: (Type ver at a Windows Command Prompt)
Microsoft Windows [Version 10.0.16299.125]
What you're doing and what's happening: (Copy&paste specific commands and their output, or include screen shots)
After updating libc6 and/or libc-bin apt, wget, curl, etc. quit working because they can no longer resolve hostnames. I followed the guide here:
https://www.kali.org/tutorials/kali-on-the-windows-subsystem-for-linux/
I have tried both of these dockers with the same effects:
kalilinux/kali-linux-docker
jasonchaffee/kali-linux
Steps to cause the problem:
root@W10:/tmp# apt install libc-binor
root@W10:/tmp# apt install libc6After either of those packages are updated, then anything needing a DNS resolution fails:
Showing that this works:
Now, updating libc-bin (which includes libc6)
And finally, showing wget doesn't work anymore, nor does anything requiring name resolution (apt, traceroute, ping):
What's wrong / what should be happening instead:
All name resolution should be working. I can still ping internal IP Addresses, but I cannot reach anything external after updating libc6 or libc-bin.
Strace of the failing command, if applicable: (If some_command is failing, then run strace -o some_command.strace -f some_command some_args, and link the contents of some_command.strace in a gist here)
strace -o wget.strace -f wget google.comhttps://gist.github.com/ralphyz/c5bbfc575738d67eba84a0a9f1ce3d22