Code Monkey home page Code Monkey logo

Comments (7)

pymumu avatar pymumu commented on July 22, 2024

可能是openwrt禁止ipv6的ping了。

可以先看一下日志 /var/log/smartdns.log里面有没有ping相关的错误日志。
或者登录到路由器中,用ping6命令,试一下ping6是否正常工作。

from smartdns.

xun188 avatar xun188 commented on July 22, 2024

看过日志,并无报错,我并不是在路由上测试,ipv6应该是生效了,该装的都装了,按照正常设置生效了,软件需要优化还是要进行啥自定义设置?感觉并没有在v4和v6里选择最快的,直接选了v6,而且还比较慢

from smartdns.

xun188 avatar xun188 commented on July 22, 2024

可能是openwrt禁止ipv6的ping了。

可以先看一下日志 /var/log/smartdns.log里面有没有ping相关的错误日志。
或者登录到路由器中,用ping6命令,试一下ping6是否正常工作。

看过日志,并无报错,我并不是在路由上测试,ipv6应该是生效了,该装的都装了,按照正常设置生效了,软件需要优化还是要进行啥自定义设置?感觉并没有在v4和v6里选择最快的,直接选了v6,而且还比较慢

from smartdns.

xun188 avatar xun188 commented on July 22, 2024

可能是openwrt禁止ipv6的ping了。

可以先看一下日志 /var/log/smartdns.log里面有没有ping相关的错误日志。
或者登录到路由器中,用ping6命令,试一下ping6是否正常工作。

路由上如下:
root@OpenWrt:# ping www.outlook.com
PING www.outlook.com (40.100.54.210): 56 data bytes
64 bytes from 40.100.54.210: seq=0 ttl=239 time=45.564 ms
root@OpenWrt:
# ping6 2603:1046:c02:1060::2
PING 2603:1046:c02:1060::2 (2603:1046:c02:1060::2): 56 data bytes
64 bytes from 2603:1046:c02:1060::2: seq=0 ttl=45 time=361.461 ms
64 bytes from 2603:1046:c02:1060::2: seq=1 ttl=45 time=361.703 ms
64 bytes from 2603:1046:c02:1060::2: seq=2 ttl=45 time=361.111 ms
64 bytes from 2603:1046:c02:1060::2: seq=3 ttl=45 time=361.361 ms
在电脑pc上如下:
正在 Ping outlook.ms-acdc.office.com [2603:1046:c02:1060::2] 具有 32 字节的数据:
来自 2603:1046:c02:1060::2 的回复: 时间=399ms
来自 2603:1046:c02:1060::2 的回复: 时间=403ms
来自 2603:1046:c02:1060::2 的回复: 时间=400ms
来自 2603:1046:c02:1060::2 的回复: 时间=410ms

路由设置作为dnsmaq上游,开启ipv6,大概就这样,软件正常running

from smartdns.

pymumu avatar pymumu commented on July 22, 2024

使用ipv4,还是ipv6现在是终端设备自己选择的。
smartdns并没有在Ipv4和ipv6间优化选择。
目前,终端请求IPV4地址,smartdns只能返回IPV4地址,不能返回IPV6地址。
同理,终端请求IPV6地址,也只能返回IPV6地址。
使用哪个地址决定权在终端,smartdns没有决定权。

当然,smartdns也可以做处理,强制返回地址不可用。
比如终端请求IPV4地址时,smartdns同时检测IPV4和IPV6地址,如果IPV4地址快,就返回IPV4,如果IPV6快,就返回SOA,表示IPV6不可用。这样终端就会重新请求IPV6地址。smartdns返回IPV6这时就对了。
终端请求IPV6地址时,也可以用同样方法,返回IPV4地址。

当然,还要细化考虑。

from smartdns.

pymumu avatar pymumu commented on July 22, 2024

当前情况,IPV6并不是很成熟,可以考虑直接禁用IPV6试试,强制使用IPV4地址。
也就是配置force-AAAA-SOA yes。

from smartdns.

pymumu avatar pymumu commented on July 22, 2024

Release 18增加了双栈IP优选策略。
配置参数为dualstack-ip-selection yes
如需要设置自定义优选阈值,请使用配置
dualstack-ip-selection-threshold

from smartdns.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.