GithubHelp home page GithubHelp logo

Comments (8)

mokeyish avatar mokeyish commented on June 2, 2024

https://github.com/mokeyish/smartdns-rs/actions/runs/7364459116

试试这个版本

from smartdns-rs.

TnZzZHlp avatar TnZzZHlp commented on June 2, 2024

https://github.com/mokeyish/smartdns-rs/actions/runs/7364459116

试试这个版本

还是会超时

from smartdns-rs.

TnZzZHlp avatar TnZzZHlp commented on June 2, 2024

而且这个版本配置文件读取有问题
image
切换回0.7.1版本正常

from smartdns-rs.

mokeyish avatar mokeyish commented on June 2, 2024

配置文件解析的解决了,加了个注释忽略。
image

serve-expired-prefetch-time 选项,没支持,先忽略。

。。至于 PTR 我这边也是没问题的,除非你用了容器转发,程序获取不到你访问的 IP。

from smartdns-rs.

TnZzZHlp avatar TnZzZHlp commented on June 2, 2024

我前面确实套了一层转发,不过用C版的话倒是没有这个问题。
C版返回是
image

但是rust版的话直接就没有返回了

还有我看了下缓存预获取功能这个逻辑好像有点问题,正常情况下应该用 第一次查询的DNS组 进行预获取,但是全部都用default组预获取了

不知道大佬还有其他需要提供的配置或者日志么

查询过程 Client -> 192.168.3.1 -> 分流 -> [192.168.3.199:533 | 192.168.3.199:5333 | 192.168.3.199:53333]

我的配置文件

# Smartdns Config
# 监听配置
bind 192.168.3.199:533
bind 192.168.3.199:5333
bind 192.168.3.199:53333

# 日志
log-level info
log-file C:\\Users\\Administrator\\Desktop\\smartdns\\smartdns.log

# 审计日志
audit-enable yes
audit-file C:\\Users\\Administrator\\Desktop\\smartdns\\audit.log

# 缓存配置
cache-size 1024000
cache-persist yes
cache-file C:\\Users\\Administrator\\Desktop\\smartdns\\smartdns.cache
serve-expired yes # 开启过期缓存
serve-expired-ttl 86400 # 过期缓存超时时间
serve-expired-reply-ttl 1 # 过期缓存响应TTL
prefetch-domain yes # 过期缓存预获取时间
serve-expired-prefetch-time 3600
cache-checkpoint-time 3600 # cache定时保存

max-reply-ip-num 1 # 最大返回IP数量

# 屏蔽IPV6
force-AAAA-SOA yes

# 测速配置
speed-check-mode tcp:443,tcp:80
response-mode fastest-ip

# 上游DNS配置
# 内地
server-https https://223.5.5.5/dns-query -group mainland
server-https https://223.6.6.6/dns-query -group mainland

# 海外
server-https https://1.1.1.1/dns-query -group overseas
server-https https://1.0.0.1/dns-query -group overseas

# 美国
server-https https://8.8.8.8/dns-query -group us
server-https https://8.8.4.4/dns-query -group us

from smartdns-rs.

TnZzZHlp avatar TnZzZHlp commented on June 2, 2024

我试了下 https://github.com/mokeyish/smartdns-rs/actions/runs/7365468314 这个版本还是会出现查询超时的问题,配置文件读取没问题

from smartdns-rs.

mokeyish avatar mokeyish commented on June 2, 2024

@TnZzZHlp 增加了,私有 IP 直接返回空记录,不查上游了。你再试试,看看会不会超时。

from smartdns-rs.

TnZzZHlp avatar TnZzZHlp commented on June 2, 2024

@TnZzZHlp 增加了,私有 IP 直接返回空记录,不查上游了。你再试试,看看会不会超时。

测试没有问题,感谢修复👍

from smartdns-rs.

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.