-
-
Notifications
You must be signed in to change notification settings - Fork 68
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
On ARM devices, DNS always resolves IPV6 ::1 by default #223
Comments
Hi @zisain, Thanks for reporting this. Unfortunately I do not have an ARM device to test this out for myself, making it very difficult to work on. I will keep this open to see if someone with the same issue and an ARM device can help out. |
Hi @pouriyajamshidi I'm totally new to this project but I'm familiar with golang and have an ARM device. |
Hi @SYSHIL, Thanks for reaching out and willing to help out here. It is much appreciated. You are more than welcome to work on this. The name resolution logic is pretty simple. Here are the specific locations in the code base: Line 640 in 18218de
Line 580 in 18218de
I suggest first running this on your own with although, I suspect it is an "Android thing" and not related to ARM. Let's see. |
Since I don't know golang, I found a discontinued version from other developers for your reference. He used the -D parameter to specify DNS to solve the problem of the system selecting the loopback address as dns, or not having permission to obtain the /proc/net/dev directory permission problem after android12. This is the version description of https://github.com/cloverstd/tcping/releases. As you said, this is an issue with android, but I don't understand how it happened. I'm very sorry. |
Thanks for the information @zisain |
Hi @pouriyajamshidi yeah I was able to run it just fine :)
|
Thanks for the info @SYSHIL |
Unable to specify dns resolution, resulting in the inability to connect to the target correctly. Only after pinging and resolving to the correct address, and
tcping -4 x.x.x.x 80
can the correct result be obtained. It is recommended to add the specified dns parameter or the built-in dns server address. The -4 parameter automatically selects the IPV4 dns resolution, and the -6 parameter automatically selects the IPV6 dns resolution.The text was updated successfully, but these errors were encountered: