Comments (8)
可以把下面脚本放在 和 dat 同目录 然后把这个脚本加入 crontab 就可以了.
同理 windows 下 powershell 也可以 windows 也有计划任务
#!/bin/bash
dest=`dirname $0`
#echo $dest"/geoip.dat"
curl -L -o $dest"/geoip.dat" "https://cdn.jsdelivr.net/gh/Loyalsoldier/v2ray-rules-dat@release/geoip.dat"
curl -L -o $dest"/geosite.dat" "https://cdn.jsdelivr.net/gh/Loyalsoldier/v2ray-rules-dat@release/geosite.dat"
systemctl restart mosdns
from mosdns.
反对,完全没必要,又不是人人都要用 geo 那几个数据文件。要用就脚本也不难。
加那个缓存支持 redis 其实我就很反对,一个没几个人用的功能增加了差不多 2M 体积;
mosdns 已经足够多功能了,不能为了傻瓜化去支持这那几个脚本就能做的事情。如果可以我倒希望编译的时候可以真正的模块化,比如想要什么就编译什么,dnsproxy 那部分我感觉就没什么必要,本来 mos-chinadns 的 DNS 模块就很轻巧。
from mosdns.
同。我也觉得脚本更好。10 行脚本就完事了
@rampageX 确实,加完 redis 发现大了不少。不过 redis 确实比 mosdns 内置的那个缓存要好。(如果量上去了的话....)
如果可以我倒希望编译的时候可以真正的模块化,比如想要什么就编译什么,dnsproxy 那部分我感觉就没什么必要
dnsproxy 的 DoQ 依赖了 quic-go,这包大的很。release 图方便就把插件全带上了。
想要什么就编译什么
这个可以有
https://github.com/IrineSistiana/mosdns/blob/main/dispatcher/plugin/enabled_plugin.go
注释掉就行了。
from mosdns.
@kuyagic 这样不好,因为要考虑到文件下载失败,其实要有逻辑在里面,有msodns控制比较好
from mosdns.
我觉得mosdns应该是开箱即用的东西,然后基于模块化给用户自己选择.因为额外的脚本,其实对于很多用户的维护成本其实很高的.
from mosdns.
这种功能确实没啥必要让mosdns来实现,一个脚本就完事了
不过如果mosdns开放插件系统出来,让这种功能可以通过自己写插件来实现那就更棒了😎
from mosdns.
mosdns开放插件系统
有啊, mosdns 就是插件化的呀. 要是你说的"开放"是指热加载,也有.只不过,(一词概括),很坑.
wiki 里有个页面. 除了接口, 不保证 公用函数 稳定.
from mosdns.
这个 issue 先关了, 有事请进 discussions.
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.