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

[BUG] 第一跳主机名显示不全 #47

Closed
wwng2333 opened this issue Dec 8, 2023 · 11 comments
Closed

[BUG] 第一跳主机名显示不全 #47

wwng2333 opened this issue Dec 8, 2023 · 11 comments

Comments

@wwng2333
Copy link

wwng2333 commented Dec 8, 2023

Describe the bug 描述你遇到的BUG
我的第一跳主机名是smartdns,但是程序中只显示smartdn,拉宽那一列也无法显示完全,其他正常

To Reproduce 复现方法
no idea

Screenshots (If applicable) 截图(如果有)
image

Environment 使用环境

  • OS 操作系统:Windows 10 20H2 x64
  • Version 程序版本:1.4.1.1

Additional context 补充说明
下面是使用nexttrace的结果,可以看到nexttrace解析不出来主机名

./nexttrace.exe 223.6.6.6
NextTrace v1.2.7 2023-12-01T08:40:30Z c0455ca
[NextTrace API] preferred API IP - [2605:52c0:2:954::] - 534.20ms - DMIT.LAX
IP Geo Data Provider: LeoMoeAPI
traceroute to 223.6.6.6, 30 hops max, 52 bytes packets
1   192.168.123.1   *                         RFC1918
                                              2.57 ms / 1.36 ms / 1.61 ms
2   *
3   122.193.94.49   AS4837   [UNICOM-JS]      中国 江苏省 苏州市 常熟 chinaunicom.cn  联通
                                              4.51 ms / 6.44 ms / 4.51 ms
4   58.240.200.61   AS4837                    中国 江苏省 苏州市 姑苏 chinaunicom.cn  联通
                                              8.79 ms / 115.96 ms / * ms
5   219.158.111.85  AS4837   [CU169-BACKBONE] 中国 北京市   chinaunicom.cn  联通
                                              25.61 ms / * ms / * ms
6   *
7   125.33.185.118  AS4808   [UNICOM-BJ]      中国 北京市   chinaunicom.cn  联通
                                              24.37 ms / * ms / * ms
8   61.49.143.2     AS4808                    中国 北京市   chinaunicom.cn  联通
                                              138.40 ms / * ms / * ms
9   *
10  *
11  *
12  *
13  223.6.6.6       AS45102  [ALISOFT]        中国    alibabagroup.com
    public2.alidns.com                        29.20 ms / 28.67 ms / 29.14 ms
MapTrace URL: https://assets.nxtrace.org/tracemap/9b824c5d-028b-51e9-a513-b72c7a4af0a1.html

cmd nslookup显示主机名正常:

C:\Users\Administrator>nslookup
默认服务器:  smartdns
Address:  192.168.123.1

> 1.1.1.1
服务器:  smartdns
Address:  192.168.123.1

名称:    one.one.one.one
Address:  1.1.1.1
@tsosunchia
Copy link
Contributor

并不是这样的, nexttrace不会长时间等待返回ptr, 所以出现了这种情况

@tsosunchia
Copy link
Contributor

./nexttrace.exe 223.6.6.6 -a

你可以观察一下输出

@wwng2333
Copy link
Author

wwng2333 commented Dec 8, 2023

./nexttrace.exe 223.6.6.6 -a

你可以观察一下输出

-a以后输出正常

nexttrace.exe 223.6.6.6 -a
NextTrace v1.2.7 2023-12-01T08:40:30Z c0455ca
[NextTrace API] preferred API IP - [2605:52c0:2:954::] - 533.83ms - DMIT.LAX
IP Geo Data Provider: LeoMoeAPI
traceroute to 223.6.6.6, 30 hops max, 52 bytes packets
1   192.168.123.1   *                         RFC1918
    smartdns                                  1.74 ms / 1.39 ms / 1.41 ms
2   *
3   122.193.94.49   AS4837   [UNICOM-JS]      中国 江苏省 苏州市 常熟 chinaunicom.cn  联通
                                              4.52 ms / 4.51 ms / 5.48 ms
4   58.240.200.61   AS4837                    中国 江苏省 苏州市 姑苏 chinaunicom.cn  联通
                                              8.60 ms / 8.88 ms / * ms
5   219.158.111.85  AS4837   [CU169-BACKBONE] 中国 北京市   chinaunicom.cn  联通
                                              26.37 ms / * ms / * ms
6   *
7   *
8   61.49.143.2     AS4808                    中国 北京市   chinaunicom.cn  联通
                                              245.97 ms / * ms / * ms
9   *
10  *
11  *
12  *
13  223.6.6.6       AS45102  [ALISOFT]        中国    alibabagroup.com
    public2.alidns.com.                       29.24 ms / 29.01 ms / 29.02 ms

@tsosunchia
Copy link
Contributor

./nexttrace.exe 223.6.6.6 -a
你可以观察一下输出

-a以后输出正常

nexttrace.exe 223.6.6.6 -a
NextTrace v1.2.7 2023-12-01T08:40:30Z c0455ca
[NextTrace API] preferred API IP - [2605:52c0:2:954::] - 533.83ms - DMIT.LAX
IP Geo Data Provider: LeoMoeAPI
traceroute to 223.6.6.6, 30 hops max, 52 bytes packets
1   192.168.123.1   *                         RFC1918
    smartdns                                  1.74 ms / 1.39 ms / 1.41 ms
2   *
3   122.193.94.49   AS4837   [UNICOM-JS]      中国 江苏省 苏州市 常熟 chinaunicom.cn  联通
                                              4.52 ms / 4.51 ms / 5.48 ms
4   58.240.200.61   AS4837                    中国 江苏省 苏州市 姑苏 chinaunicom.cn  联通
                                              8.60 ms / 8.88 ms / * ms
5   219.158.111.85  AS4837   [CU169-BACKBONE] 中国 北京市   chinaunicom.cn  联通
                                              26.37 ms / * ms / * ms
6   *
7   *
8   61.49.143.2     AS4808                    中国 北京市   chinaunicom.cn  联通
                                              245.97 ms / * ms / * ms
9   *
10  *
11  *
12  *
13  223.6.6.6       AS45102  [ALISOFT]        中国    alibabagroup.com
    public2.alidns.com.                       29.24 ms / 29.01 ms / 29.02 ms

是的,-a参数会使nexttrace长时间等待ptr,一般家用路由器都会遇到这种问题,响应ptr过慢

@tsosunchia
Copy link
Contributor

@Archeb 可以考虑一下,把preference中的禁用反向DNS查询改为菜单按钮,这样可以让用户选择 null/-n/-a

@wwng2333
Copy link
Author

wwng2333 commented Dec 8, 2023

./nexttrace.exe 223.6.6.6 -a
你可以观察一下输出

-a以后输出正常

nexttrace.exe 223.6.6.6 -a
NextTrace v1.2.7 2023-12-01T08:40:30Z c0455ca
[NextTrace API] preferred API IP - [2605:52c0:2:954::] - 533.83ms - DMIT.LAX
IP Geo Data Provider: LeoMoeAPI
traceroute to 223.6.6.6, 30 hops max, 52 bytes packets
1   192.168.123.1   *                         RFC1918
    smartdns                                  1.74 ms / 1.39 ms / 1.41 ms
2   *
3   122.193.94.49   AS4837   [UNICOM-JS]      中国 江苏省 苏州市 常熟 chinaunicom.cn  联通
                                              4.52 ms / 4.51 ms / 5.48 ms
4   58.240.200.61   AS4837                    中国 江苏省 苏州市 姑苏 chinaunicom.cn  联通
                                              8.60 ms / 8.88 ms / * ms
5   219.158.111.85  AS4837   [CU169-BACKBONE] 中国 北京市   chinaunicom.cn  联通
                                              26.37 ms / * ms / * ms
6   *
7   *
8   61.49.143.2     AS4808                    中国 北京市   chinaunicom.cn  联通
                                              245.97 ms / * ms / * ms
9   *
10  *
11  *
12  *
13  223.6.6.6       AS45102  [ALISOFT]        中国    alibabagroup.com
    public2.alidns.com.                       29.24 ms / 29.01 ms / 29.02 ms

是的,-a参数会使nexttrace长时间等待ptr,一般家用路由器都会遇到这种问题,响应ptr过慢

我用wireshark抓到opentrace获得的ptr结果是正常的,只是显示的不对,不显示最后一个字符
image

@tsosunchia
Copy link
Contributor

./nexttrace.exe 223.6.6.6 -a
你可以观察一下输出

-a以后输出正常

nexttrace.exe 223.6.6.6 -a
NextTrace v1.2.7 2023-12-01T08:40:30Z c0455ca
[NextTrace API] preferred API IP - [2605:52c0:2:954::] - 533.83ms - DMIT.LAX
IP Geo Data Provider: LeoMoeAPI
traceroute to 223.6.6.6, 30 hops max, 52 bytes packets
1   192.168.123.1   *                         RFC1918
    smartdns                                  1.74 ms / 1.39 ms / 1.41 ms
2   *
3   122.193.94.49   AS4837   [UNICOM-JS]      中国 江苏省 苏州市 常熟 chinaunicom.cn  联通
                                              4.52 ms / 4.51 ms / 5.48 ms
4   58.240.200.61   AS4837                    中国 江苏省 苏州市 姑苏 chinaunicom.cn  联通
                                              8.60 ms / 8.88 ms / * ms
5   219.158.111.85  AS4837   [CU169-BACKBONE] 中国 北京市   chinaunicom.cn  联通
                                              26.37 ms / * ms / * ms
6   *
7   *
8   61.49.143.2     AS4808                    中国 北京市   chinaunicom.cn  联通
                                              245.97 ms / * ms / * ms
9   *
10  *
11  *
12  *
13  223.6.6.6       AS45102  [ALISOFT]        中国    alibabagroup.com
    public2.alidns.com.                       29.24 ms / 29.01 ms / 29.02 ms

是的,-a参数会使nexttrace长时间等待ptr,一般家用路由器都会遇到这种问题,响应ptr过慢

我用wireshark抓到opentrace获得的ptr结果是正常的,只是显示的不对,不显示最后一个字符 image

这不是opentrace的问题,这是nexttrace这里处理的特性

@tsosunchia
Copy link
Contributor

作为一个临时的解决办法,你可以在preference中 “附加参数” 中填写 -a

@wwng2333
Copy link
Author

wwng2333 commented Dec 8, 2023

作为一个临时的解决办法,你可以在preference中 “附加参数” 中填写 -a

添加-a之后问题解决
image

@wwng2333 wwng2333 closed this as completed Dec 8, 2023
@Archeb
Copy link
Owner

Archeb commented Dec 12, 2023

@Archeb 可以考虑一下,把preference中的禁用反向DNS查询改为菜单按钮,这样可以让用户选择 null/-n/-a

已添加 9835e3d

@wwng2333
Copy link
Author

@Archeb 可以考虑一下,把preference中的禁用反向DNS查询改为菜单按钮,这样可以让用户选择 null/-n/-a

已添加 9835e3d

image

测试ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants