Comments (7)
我在配置时推断了很久的地方在于:如何在 pipeline 路由中添加类似 sequence 路由里的条件判断。
如果希望缓存请求应答,那么看起来有必要将处理请求的全部环节都放在 pipeline 路由中。但是同时我希望做到对国内域名和国外域名分别请求,Wiki 里没有见到支持 if 这样的语法,所以我就尝试着把 sequence 路由放在 pipeline 路由里执行了。
没有任何问题。就是这样设计的。pipeline 里的 sequence 放在 pipe 里还是 next 都行。
退出是因为 cache 插件有 bug。
from mosdns.
其实没必要拆开。如果想实现 cache 和 hosts,把它俩 放进 pipeline ,然后后面next 接原来的 sequence 就行。
from mosdns.
其实没必要拆开。如果想实现 cache 和 hosts,把它俩 放进 pipeline ,然后后面next 接原来的 sequence 就行。
好,谢谢建议~
// 等您老把 bug 修了我就试试
from mosdns.
bug 是个变量名笔误,已经修了。但新版本那得等几天了。计划把插件类型整理整理,现在类型挺乱,调用方式也很迷。
from mosdns.
你说已经修了但我没看到提交记录啊 233333
我可以自己独立编译的,所以不算问题。
from mosdns.
上游全部使用doh之后,cache功能有非常迫切的需求。
from mosdns.
上游全部使用doh之后,cache功能有非常迫切的需求。
@Richardxyz 还好吧,forward
的 doh 有连接复用的。就第一次请求要握手延时高点。然后就和udp一样低了。
from mosdns.
Related Issues (20)
- [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
- [Feature request] 可以支持直接读取xray的geosite.dat文件么 HOT 3
- [Bug] prefer_ipv4 是否有bug,影响到了纯 ipv6 解析 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.