Comments (11)
至少处理到 不要程序崩溃 有这类情况 推荐 在日志 Warn 级别记录下 就差不多了吧 估计无解?
目前 mosdns
被我用来当 局域网的 dns 了 就是单纯转发 非标准udp端口的查询和提供hosts
还有一些特定的 包括不限于广告 的只能在 mosdns 里自由处理的逻辑
如果能提供 反向ptr 指定功能就更好了(
from mosdns.
感谢反馈, 已解决.
from mosdns.
问题解决了但我还想改一些东西, 这个问题是udp协议的,你可以先暂时换成tcp或其他协议.
题外话,能发给我你的配置文件吗,我好奇为什么udp模式会触发tcp回滚.谢谢.
from mosdns.
@IrineSistiana 能否提供个邮箱地址 我把配置不mask给你
或者你提供下你的 PGP key 我打包加密给你也行
我配置的上游 应该都是 udp 的 没有配置 tcp 和 doh dot 等
from mosdns.
不是很方便留邮箱。
我配置的上游 应该都是 udp 的 没有配置 tcp 和 doh dot 等
但是 server 有 tcp 对吧?
from mosdns.
不是很方便留邮箱。
我配置的上游 应该都是 udp 的 没有配置 tcp 和 doh dot 等
但是 server 有 tcp 对吧?
server 是 本地 udp 的
上游 都是 udp 非标准端口的dns
from mosdns.
能告诉我上游是哪些吗?
from mosdns.
这是我 forward.yaml
plugin:
- tag: 'forward_to_chn_dns'
type: 'forward'
args:
bootstrap: []
deduplicate: false
insecure_skip_verify: false
timeout: 10
upstream:
- addr: '119.29.29.29'
- addr: '180.76.76.76'
- addr: '1.2.4.8'
- addr: '114.114.114.114'
- tag: 'forward_to_oversea_dns'
type: 'forward'
args:
bootstrap: []
deduplicate: false
insecure_skip_verify: false
timeout: 10
upstream:
- addr: '208.67.222.222:5353'
- addr: 'tls://9.9.9.11'
- tag: 'fast_forward_to_oversea_dns'
type: 'fast_forward'
args:
upstream:
# USTC Linux User Group
# - protocol: 'udp'
# addr: '202.141.162.123:5353'
- protocol: 'udp'
addr: '9.9.9.9:9953' # Quad-9
- tag: 'fast_forward_to_clean_dns'
type: 'fast_forward'
args:
upstream:
# USTC Linux User Group
- protocol: 'udp'
addr: '202.141.178.13:5353'
本来是没有注释 202.141.162.123
这个上游的 但是报错了 后来注释了这个上游还是报错
下面是入口的sequence
#主流程 带hosts 和 自定义匹配
- tag: 'main_server_seq'
type: 'sequence'
args:
exec:
- 'check_hosts'
- 'forward_to_chn_dns'
- if:
- 'match_chn_response'
- 'match_cloudflare_ip_response'
exec:
- 'ad_check_seq'
- '_end'
- 'add_ecs_info'
- 'fast_forward_to_oversea_dns'
- 'ad_check_seq'
- '_default_cache'
- '_end'
from mosdns.
感谢提供配置。
本来是没有注释 202.141.162.123 这个上游的 但是报错了 后来注释了这个上游还是报错
其实不是上游的问题。。
bug 是 udp 协议的 fallback。如果收到了被截断的 udp 回应(udp 有最大传输大小),fast_forward
会尝试用同地址的 tcp 重试(fallback)。然后fallback有bug就崩了。
有被截断的 udp 回应说明要用 tcp了。
下个版本会修正这个问题,然后改善这个fallback机制。你可以先用 forawrd
的udp。
from mosdns.
好的 感谢。
from mosdns.
哦对了,刚刚想到的一个问题。
即使fallback成功了,因为你的下游是 udp,也未必能成功传回去。
from mosdns.
Related Issues (20)
- [Bug] V5.3.1 数据库更新失败,提示“请检查网络状态”
- [Bug] HOT 1
- [Bug] 在经过 resp_ip 判断后 black_hole 无法替换 IPv4 或 IPv6 地址 HOT 11
- [Bug] 日志有错误信息提示无法写入缓存?
- 配置文件中的“中文域名”不识别 HOT 1
- [Bug] AAAA QTYPE 大量出现 context deadline exceeded HOT 2
- [Bug] 当其他DNS服务器的解析请求转发到mosdns上之后,无法得到解析回复 HOT 1
- DNS解锁失效
- [Feature request] 希望增加 ipset 删除功能 HOT 1
- [Bug] IPv6 DNS Server [2620:fe::fe] 识别问题 HOT 2
- [Feature request] 希望fallback插件内標記的mark可以帶回上級sequence
- [Bug] 配置文件为 wiki 中的简单转发器配置文件,mosdns 无法正常工作 HOT 2
- [Feature request] 提供将lazy_cache写入内存的选项 HOT 4
- [Feature request] prefer plugin support for HTTPS record HOT 1
- [Bug] client_ip匹配ipv6 cidr未按预期工作 HOT 2
- [Feature request] 丢弃resp_ip中指定的IP
- [Feature request] 并行请求时直接返回最快返回的应答 HOT 1
- [Feature request] 关于 forward 和 hosts 插件的功能建议! HOT 4
- 用sequence模拟fallback,出现context deadline exceeded时程序会中断。 HOT 4
- [Bug] has invalid keys: data_providers, servers 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 mosdns.