Comments (8)
https://github.com/mokeyish/smartdns-rs/actions/runs/7364459116
试试这个版本
from smartdns-rs.
https://github.com/mokeyish/smartdns-rs/actions/runs/7364459116
试试这个版本
还是会超时
from smartdns-rs.
from smartdns-rs.
serve-expired-prefetch-time 选项,没支持,先忽略。
。。至于 PTR 我这边也是没问题的,除非你用了容器转发,程序获取不到你访问的 IP。
from smartdns-rs.
我前面确实套了一层转发,不过用C版的话倒是没有这个问题。
C版返回是
但是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.
我试了下 https://github.com/mokeyish/smartdns-rs/actions/runs/7365468314 这个版本还是会出现查询超时的问题,配置文件读取没问题
from smartdns-rs.
@TnZzZHlp 增加了,私有 IP 直接返回空记录,不查上游了。你再试试,看看会不会超时。
from smartdns-rs.
@TnZzZHlp 增加了,私有 IP 直接返回空记录,不查上游了。你再试试,看看会不会超时。
测试没有问题,感谢修复👍
from smartdns-rs.
Related Issues (20)
- 能否做这个进阶玩法(dot/doq) HOT 5
- If max-reply-ip-num is set to 1, an empty record will be returned if the CNAME record is set for the domain name. HOT 2
- 0.7.1 版本,在win7_32位系统,提示,与您运行的windows版本不兼容,无法运行。 HOT 2
- macOS 14.2.1 下 cargo build --release失败 HOT 2
- OpenWrt编译版本查询任意域名返回局域网内IP HOT 2
- edns配置不生效 HOT 2
- 查询单栈域名没有缓存吗?DNS request timed out. timeout was 2 seconds. HOT 1
- hosts-file没有生效吗?hosts-file C:/Windows/System32/drivers/etc/hosts HOT 1
- 局域网linux设备无法访问smartdns?;; connection timed out; no servers could be reached,防火墙已经关闭了,可以ping到. HOT 1
- [Bug Report] 域名预先获取功能逻辑问题 HOT 9
- service install安装成服务能否指定conf文件? HOT 1
- 增加DNS优先级功能 HOT 2
- geosite 的支持 HOT 1
- 请求增加mdns-lookup功能 HOT 2
- edns参数只支持全局配置,不支持单独配置 HOT 10
- 大佬,可以支持XP系统吗? HOT 1
- DoQ DoH/3 支持 HOT 8
- 域名匹配规则不起作用 HOT 2
- 同样配置,返回了无法访问的ipv6地址 HOT 16
- 增加 windows arm64、mips、powerpc 编译 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from smartdns-rs.