Open 2096779623 opened 2 years ago
which --all ping
?
including the version(s) :neckbeard:
Cannot ping domains with roman symbols
I have written a new command called pinghelp
which is a helper script made to help users out with ping
in the Termux Android computer environment with and without PRoot; Can you test ping
with this command, and share your results with this brand new pinghelp
command after refreshing your system with setupTermuxArch re
if you have TermuxArch installed please?
00:32~$ ~/arch/usr/local/bin/pinghelp Ⅻ.㋏
/data/data/com.termux/files/usr/bin/ping
Running command '/system/bin/ping -c 2 -i 4 Ⅻ.㋏':
ping: unknown host Ⅻ.㋏
Signal received: Continuing...
Running command '/data/data/com.termux/files/usr/bin/ping -c 2 -i 8 Ⅻ.㋏':
ping: unknown host Ⅻ.㋏
Signal received: Continuing...
Running command '/bin/ping -c 2 -i 6 Ⅻ.㋏':
ping: unknown host Ⅻ.㋏
Signal received: Continuing...
Running command '/usr/bin/ping -c 2 -i 7 Ⅻ.㋏':
ping: unknown host Ⅻ.㋏
Signal received: Continuing...
Running command 'curl -I Ⅻ.㋏ 80':
curl: (6) Could not resolve host: Ⅻ.㋏
Signal received: Continuing...
Running command 'dig Ⅻ.㋏':
; <<>> DiG 9.16.11 <<>> Ⅻ.㋏
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 51349
;; flags: qr rd ra ad; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;\226\133\171.\227\139\143. IN A
;; AUTHORITY SECTION:
. 86400 IN SOA a.root-servers.net. nstld.verisign-grs.com. 2022022500 1800 900 604800 86400
;; Query time: 72 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Fri Feb 25 00:32:43 EST 2022
;; MSG SIZE rcvd: 111
Running command 'telnet Ⅻ.㋏ 79':
Server lookup failure: Ⅻ.㋏:80, No address associated with hostname
Signal received: Continuing...
The Termux packages 'dnsutils', 'lynx' and 'strace' can be helpful in diagnosing network issues. The 'telnet' command can assist as well.
Command pinghelp Ⅻ.㋏ version 2.1.14: DONE 🏁
00:32~$ !st
00:32~$ startarch s user 'pinghelp Ⅻ.㋏'
/usr/bin/ping
Running command '/system/bin/ping -c 2 -i 5 Ⅻ.㋏':
ping: unknown host Ⅻ.㋏
Signal received: Continuing...
Running command '/data/data/com.termux/files/usr/bin/ping -c 2 -i 2 Ⅻ.㋏':
ping: unknown host Ⅻ.㋏
Signal received: Continuing...
Running command '/bin/ping -c 2 -i 8 Ⅻ.㋏':
PING x.sqlsec.com (121.196.37.183) 56(84) bytes of data.
64 bytes from 121.196.37.183 (121.196.37.183): icmp_seq=2 ttl=34 time=601 ms
--- x.sqlsec.com ping statistics ---
2 packets transmitted, 1 received, 50% packet loss, time 8075ms
rtt min/avg/max/mdev = 600.790/600.790/600.790/0.000 ms
Running command '/usr/bin/ping -c 2 -i 3 Ⅻ.㋏':
PING x.sqlsec.com (121.196.37.183) 56(84) bytes of data.
64 bytes from 121.196.37.183 (121.196.37.183): icmp_seq=2 ttl=34 time=481 ms
--- x.sqlsec.com ping statistics ---
2 packets transmitted, 1 received, 50% packet loss, time 3026ms
rtt min/avg/max/mdev = 481.294/481.294/481.294/0.000 ms
Running command 'curl -I Ⅻ.㋏ 80':
HTTP/1.1 200 OK
Server: nginx
Date: Fri, 25 Feb 2022 05:34:07 GMT
Content-Type: text/html
Content-Length: 1090
Last-Modified: Thu, 24 Feb 2022 07:31:55 GMT
Connection: keep-alive
Vary: Accept-Encoding
ETag: "6217346b-442"
Strict-Transport-Security: max-age=31536000
Accept-Ranges: bytes
Running command 'dig Ⅻ.㋏':
; <<>> DiG 9.18.0 <<>> Ⅻ.㋏
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 51683
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
;; QUESTION SECTION:
;xii.ltd. IN A
;; ANSWER SECTION:
xii.ltd. 558 IN CNAME x.sqlsec.com.
x.sqlsec.com. 558 IN A 121.196.37.183
;; Query time: 48 msec
;; SERVER: 1.1.1.1#53(1.1.1.1) (UDP)
;; WHEN: Fri Feb 25 00:34:08 EST 2022
;; MSG SIZE rcvd: 78
Running command 'telnet Ⅻ.㋏ 79':
/usr/local/bin/pinghelp: line 62: telnet: command not found
Signal received: Continuing...
The Termux packages 'dnsutils', 'lynx' and 'strace' can be helpful in diagnosing network issues. The 'telnet' command can assist as well.
Command pinghelp Ⅻ.㋏ version 2.1.14: DONE 🏁
@2096779623 installing Arch Linux in Termux PRoot is not necessary as the command setupTermuxArch bloom
can deposit helper script pinghelp
in $HOME/arch/usr/local/bin
; limited dns help is touched upon at present.
/data/data/com.termux/files/usr/bin/which: this version of which' is deprecated; use
command -v' in scripts instead.
/data/data/com.termux/files/usr/bin/ping
@2096779623 you should update your updatable packages too.
'strace' can be helpful
$ startarch s user 'strace -c ping -c 4 Ⅻ.㋏'
proot warning: ptrace request 'PTRACE_???' not supported yet
PING x.sqlsec.com (121.196.37.183) 56(84) bytes of data.
64 bytes from 121.196.37.183 (121.196.37.183): icmp_seq=1 ttl=36 time=400 ms
64 bytes from 121.196.37.183 (121.196.37.183): icmp_seq=2 ttl=36 time=509 ms
64 bytes from 121.196.37.183 (121.196.37.183): icmp_seq=4 ttl=36 time=416 ms
--- x.sqlsec.com ping statistics ---
4 packets transmitted, 3 received, 25% packet loss, time 3038ms
rtt min/avg/max/mdev = 399.586/441.603/509.395/48.392 ms
% time seconds usecs/call calls errors syscall
------ ----------- ----------- --------- --------- ----------------
0.00 0.000000 0 8 ioctl
0.00 0.000000 0 1 1 faccessat
0.00 0.000000 0 36 9 openat
0.00 0.000000 0 46 close
0.00 0.000000 0 2 getdents64
0.00 0.000000 0 4 lseek
0.00 0.000000 0 44 read
0.00 0.000000 0 8 write
0.00 0.000000 0 27 ppoll
0.00 0.000000 0 36 newfstatat
0.00 0.000000 0 7 capget
0.00 0.000000 0 1 capset
0.00 0.000000 0 1 set_tid_address
0.00 0.000000 0 4 futex
0.00 0.000000 0 1 set_robust_list
0.00 0.000000 0 1 setitimer
0.00 0.000000 0 44 clock_gettime
0.00 0.000000 0 3 rt_sigaction
0.00 0.000000 0 19 rt_sigprocmask
0.00 0.000000 0 1 1 rt_sigreturn
0.00 0.000000 0 1 setuid
0.00 0.000000 0 3 uname
0.00 0.000000 0 8 3 prctl
0.00 0.000000 0 4 gettimeofday
0.00 0.000000 0 1 getpid
0.00 0.000000 0 2 getuid
0.00 0.000000 0 19 socket
0.00 0.000000 0 6 bind
0.00 0.000000 0 11 6 connect
0.00 0.000000 0 7 getsockname
0.00 0.000000 0 15 sendto
0.00 0.000000 0 6 recvfrom
0.00 0.000000 0 30 6 setsockopt
0.00 0.000000 0 13 getsockopt
0.00 0.000000 0 41 2 recvmsg
0.00 0.000000 0 4 brk
0.00 0.000000 0 26 munmap
0.00 0.000000 0 1 execve
0.00 0.000000 0 43 mmap
0.00 0.000000 0 24 mprotect
0.00 0.000000 0 1 prlimit64
0.00 0.000000 0 1 sendmmsg
0.00 0.000000 0 2 getrandom
0.00 0.000000 0 1 rseq
------ ----------- ----------- --------- --------- ----------------
100.00 0.000000 0 564 28 total
@2096779623你也应该更新你的可更新包。
it doesn't help.
'strace' 可能会有所帮助
$ startarch s user 'strace -c ping -c 4 Ⅻ.㋏' proot warning: ptrace request 'PTRACE_???' not supported yet PING x.sqlsec.com (121.196.37.183) 56(84) bytes of data. 64 bytes from 121.196.37.183 (121.196.37.183): icmp_seq=1 ttl=36 time=400 ms 64 bytes from 121.196.37.183 (121.196.37.183): icmp_seq=2 ttl=36 time=509 ms 64 bytes from 121.196.37.183 (121.196.37.183): icmp_seq=4 ttl=36 time=416 ms --- x.sqlsec.com ping statistics --- 4 packets transmitted, 3 received, 25% packet loss, time 3038ms rtt min/avg/max/mdev = 399.586/441.603/509.395/48.392 ms % time seconds usecs/call calls errors syscall ------ ----------- ----------- --------- --------- ---------------- 0.00 0.000000 0 8 ioctl 0.00 0.000000 0 1 1 faccessat 0.00 0.000000 0 36 9 openat 0.00 0.000000 0 46 close 0.00 0.000000 0 2 getdents64 0.00 0.000000 0 4 lseek 0.00 0.000000 0 44 read 0.00 0.000000 0 8 write 0.00 0.000000 0 27 ppoll 0.00 0.000000 0 36 newfstatat 0.00 0.000000 0 7 capget 0.00 0.000000 0 1 capset 0.00 0.000000 0 1 set_tid_address 0.00 0.000000 0 4 futex 0.00 0.000000 0 1 set_robust_list 0.00 0.000000 0 1 setitimer 0.00 0.000000 0 44 clock_gettime 0.00 0.000000 0 3 rt_sigaction 0.00 0.000000 0 19 rt_sigprocmask 0.00 0.000000 0 1 1 rt_sigreturn 0.00 0.000000 0 1 setuid 0.00 0.000000 0 3 uname 0.00 0.000000 0 8 3 prctl 0.00 0.000000 0 4 gettimeofday 0.00 0.000000 0 1 getpid 0.00 0.000000 0 2 getuid 0.00 0.000000 0 19 socket 0.00 0.000000 0 6 bind 0.00 0.000000 0 11 6 connect 0.00 0.000000 0 7 getsockname 0.00 0.000000 0 15 sendto 0.00 0.000000 0 6 recvfrom 0.00 0.000000 0 30 6 setsockopt 0.00 0.000000 0 13 getsockopt 0.00 0.000000 0 41 2 recvmsg 0.00 0.000000 0 4 brk 0.00 0.000000 0 26 munmap 0.00 0.000000 0 1 execve 0.00 0.000000 0 43 mmap 0.00 0.000000 0 24 mprotect 0.00 0.000000 0 1 prlimit64 0.00 0.000000 0 1 sendmmsg 0.00 0.000000 0 2 getrandom 0.00 0.000000 0 1 rseq ------ ----------- ----------- --------- --------- ---------------- 100.00 0.000000 0 564 28 total
I think it might only work in Proot Linux.
Execute strace using the Termux environment:
ping: unknown host Ⅻ.㋏
% time seconds usecs/call calls errors syscall
------ ----------- ----------- --------- --------- -------------------
21.43 0.030000 129 231 mmap
14.29 0.020000 139 143 munmap
14.29 0.020000 129 155 prctl
7.14 0.010000 89 112 mprotect
7.14 0.010000 10000 1 getuid
7.14 0.010000 169 59 read
7.14 0.010000 129 77 6 newfstatat
7.14 0.010000 769 13 readlinkat
7.14 0.010000 333 30 fstat
7.14 0.010000 285 35 2 openat
0.00 0.000000 0 3 fcntl
0.00 0.000000 0 11 fstatfs
0.00 0.000000 0 9 faccessat
0.00 0.000000 0 34 close
0.00 0.000000
~ $ startarch l user
user12:58~$ ping -c 2 -n Ⅻ.㋏
PING x.sqlsec.com (121.196.37.183) 56(84) bytes of data.
64 bytes from 121.196.37.183: icmp_seq=1 ttl=33 time=269 ms
64 bytes from 121.196.37.183: icmp_seq=2 ttl=33 time=303 ms
--- x.sqlsec.com ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1002ms
rtt min/avg/max/mdev = 269.343/286.240/303.138/16.897 ms
user12:59~$ e
logout
~ $ proot-distro login alpine
localhost:~# ping -c 2 -n Ⅻ.㋏
ping: bad address 'Ⅻ.㋏'
Problem description
busybox:
This domain name belongs to @sqlsec .
Ⅻ.㋏ == xii.ltd
This domain name is registered in China and may be inaccessible now because the domain owner has no record filing under Chinese law,but can ping.
On Windows 10:
On Powershell:
Why can't I ping this domain name in termux?
Log:
Transcript
Termux App Info
APP_NAME:
Termux
PACKAGE_NAME:
com.termux
VERSION_NAME:
0.118.0
VERSION_CODE:
118
TARGET_SDK:
28
IS_DEBUGGABLE_BUILD:
true
APK_RELEASE:
Github
SIGNING_CERTIFICATE_SHA256_DIGEST:
B6DA01480EEFD5FBF2CD3771B8D1021EC791304BDD6C4BF41D3FAABAD48EE5E1
Termux APT Info
Subscribed Repositories
sources.list
deb https://termux.librehat.com/apt/termux-main/ stable main
Updatable Packages
Termux Files Info
TERMUX_REQUIRED_FILES_DIR_PATH ($PREFIX):
/data/data/com.termux/files
ANDROID_ASSIGNED_FILES_DIR_PATH:
/data/user/0/com.termux/files
Logcat Dump
Steps to reproduce the behavior.
ping Ⅻ.㋏
What is the expected behavior?
PING x.sqlsec.com (121.196.37.183) 56(84) bytes of data. 64 bytes from 121.196.37.183 (121.196.37.183): icmp_seq=1 ttl=53 time=45.9 ms 64 bytes from 121.196.37.183 (121.196.37.183): icmp_seq=2 ttl=53 time=42.9 ms 64 bytes from 121.196.37.183 (121.196.37.183): icmp_seq=3 ttl=53 time=42.6 ms 64 bytes from 121.196.37.183 (121.196.37.183): icmp_seq=4 ttl=53 time=43.4 ms
--- x.sqlsec.com ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 7125ms rtt min/avg/max/mdev = 42.593/43.701/45.898/1.301 ms
System information
Termux App Info
APP_NAME:
Termux
PACKAGE_NAME:
com.termux
VERSION_NAME:
0.118.0
VERSION_CODE:
118
TARGET_SDK:
28
IS_DEBUGGABLE_BUILD:
true
APK_RELEASE:
Github
SIGNING_CERTIFICATE_SHA256_DIGEST:
B6DA01480EEFD5FBF2CD3771B8D1021EC791304BDD6C4BF41D3FAABAD48EE5E1
Device Info
Software
OS_VERSION:
4.0.9
SDK_INT:
25
RELEASE:
7.1.2
ID:
N2G48H
DISPLAY:
OnePlus-user 7.1.2 20171130.276299 release-keys
INCREMENTAL:
rel.se.infra.20200730.150525
SECURITY_PATCH:
2017-10-05
IS_DEBUGGABLE:
0
TYPE:
user
TAGS:
release-keys
Hardware
MANUFACTURER:
OnePlus
BRAND:
OnePlus
MODEL:
HD1910
PRODUCT:
HD1910
BOARD:
SM8150-AC
HARDWARE:
intel
DEVICE:
HD1910
SUPPORTED_ABIS:
x86, armeabi-v7a, armeabi