ish-app / ish

Linux shell for iOS
https://ish.app
Other
17.19k stars 910 forks source link

`dig` does not work #1783

Open mritzmann opened 2 years ago

mritzmann commented 2 years ago

Hi

I have installed iSH and found that dig does not work. I installed dig as follows.

sinope:~# apk add bind-tools
fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/x86/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/x86/APKINDEX.tar.gz
(1/13) Installing fstrm (0.6.1-r0)
(2/13) Installing krb5-conf (1.0-r2)
(3/13) Installing libcom_err (1.46.2-r0)
(4/13) Installing keyutils-libs (1.6.3-r0)
(5/13) Installing libverto (0.3.2-r0)
(6/13) Installing krb5-libs (1.18.5-r0)
(7/13) Installing json-c (0.15-r1)
(8/13) Installing protobuf-c (1.3.3-r6)
(9/13) Installing libuv (1.41.0-r0)
(10/13) Installing xz-libs (5.2.5-r1)
(11/13) Installing libxml2 (2.9.13-r0)
(12/13) Installing bind-libs (9.16.27-r0)
(13/13) Installing bind-tools (9.16.27-r0)
Executing busybox-1.33.1-r6.trigger
OK: 13 MiB in 27 packages

However, as soon as I use dig the following error appears.

sinope:~# dig +short github.com
socket.c:2316: setsockopt(20, SO_TIMESTAMP) failed: Invalid argument
socket.c:2331: setsockopt(20, IPV6_RECVPKTINFO) failed: Invalid argument
socket.c:2397: setsockopt(20, IPV6_RECVTCLASS) failed: Invalid argument
140.82.121.3

After that, it is no longer possible to return to the shell. Output of dmesg:

sinope:~# dmesg
7 stub syscall 383
7 stub syscall 383
9 stub syscall 383
9 stub syscall 383
9 stub syscall 383
9 stub syscall 383
10 stub syscall 383
10 stub syscall 383
10 stub syscall 383
10 stub syscall 383
8 stub syscall 383
8 stub syscall 383
8 stub syscall 383
8 stub syscall 383

This also happens when I uninstall and reinstall the app, so it is reproducible for me. Below is a screen recording that shows the same as described above.

https://user-images.githubusercontent.com/4533780/164978212-b509f34c-f31f-40d9-978e-1a4387678dce.mp4

whorfin commented 2 years ago

I ran into the same issue. In case it helps, drill seems to work fine.

$ apk add drill
$ drill github.com | grep -Ev "^;;|^$" | cut -f 5
192.30.255.113
net147 commented 2 years ago

To get back to shell after dig hangs: ctrl+z, "fg" and return.

Maffsie commented 1 year ago

I've been having this issue for a few months now too. dig used to work, but at some point it simply stopped. I'm not sure what changed, but dig reliably returns these errors and does not exit. ^Z does not return to the shell, either.

ElijahTailor commented 9 months ago

Same case, but prior to stop responding Dig does give the result.