Comments (2)
你解决了没,我好像跟你一样?
from mosdns-cn.
你解决了没,我好像跟你一样?
可能是配置文件的原因,换一个配置文件重新试一下吧,应该可以解决,这是我现在的配置文件,你参考一下。
log:
level: warn
file: ""
data_providers:
- tag: geosite
file: ./geosite.dat
auto_reload: true - tag: geoip
file: ./geoip.dat
auto_reload: true - tag: hosts
file: ./hosts.txt
auto_reload: true
plugins:
缓存
-
tag: cache
type: cache
args:
size: 10240
lazy_cache_ttl: 86400 -
tag: forward_local
type: fast_forward
args:
upstream:
- addr: tls://120.53.53.53:853
enable_pipeline: true- addr: tls://223.6.6.6:853 trusted: true - addr: 119.29.29.29 trusted: true - addr: 223.5.5.5 trusted: true
-
tag: forward_remote
type: fast_forward
args:
upstream:
- addr: tls://8.8.4.4:853
enable_pipeline: true
- addr: https://8.8.8.8/dns-query
- addr: udpme://8.8.8.8
trusted: true- addr: https://dns.cloudflare.com/dns-query dial_addr: 1.0.0.1 enable_pipeline: true - addr: tls://1dot1dot1dot1.cloudflare-dns.com dial_addr: 1.0.0.1 enable_pipeline: true - addr: udpme://1.1.1.1 trusted: true
-
tag: query_is_local_domain
type: query_matcher
args:
domain:
- 'provider:geosite:apple-cn'
- 'provider:geosite:google-cn'
- 'provider:geosite:category-games@cn'
- 'provider:geosite:cn'
- 'provider:geosite:private'
匹配非本地域名的插件
- tag: query_is_non_local_domain
type: query_matcher
args:
domain:
- 'provider:geosite:geolocation-!cn'
匹配广告域名的插件
- tag: query_is_ad_domain
type: query_matcher
args:
domain:
- 'provider:geosite:category-ads-all'
匹配本地 IP 的插件
-
tag: response_has_local_ip
type: response_matcher
args:
ip:
- 'provider:geoip:cn'
- 'provider:geoip:private' -
tag: main_sequence
type: sequence
args:
exec:
# 缓存
- cache# 屏蔽广告域名 - if: query_is_ad_domain exec: - _new_nxdomain_response - _return # 已知的本地域名用本地服务器解析 - if: query_is_local_domain exec: - forward_local - _return # 已知的非本地域名用远程服务器解析 - if: query_is_non_local_domain exec: - forward_remote - _return # 剩下的未知域名用 IP 分流。 # 这里借助了 `fallback` 工作机制。分流原理请参考 `fallback` # 的工作流程。 # primary 从本地服务器获取应答,丢弃非本地 IP 的结果。 - primary: - forward_local - if: "(! response_has_local_ip) && [_response_valid_answer]" exec: - _drop_response # secondary 从远程服务器获取应答。 secondary: - _prefer_ipv4 - forward_remote # 这里建议设置成 local 服务器正常延时的 2~5 倍。 # 这个延时保证了 local 延时偶尔变高时,其结果不会被 remote 抢答。 # 如果 local 超过这个延时还没响应,可以假设 local 出现了问题。 # 这时用就采用 remote 的应答。单位: 毫秒。 fast_fallback: 140
servers:
- exec: main_sequence
listeners:- protocol: udp
addr: 0.0.0.0:53 - protocol: tcp
addr: 0.0.0.0:53
- protocol: udp
from mosdns-cn.
Related Issues (20)
- googleapis.cn被local_upstream抢答到北京电信 HOT 1
- 请问如何同时监听 ipv4与pv6的 port 53 HOT 3
- Openwrt 下 --service start 出错 HOT 1
- 1.3.0 载入 geosite.dat 出错
- 指定的域名 list 走指定的 upstream, 其它所有的域名走默认的 upstream, 请问这个场景下参数怎么用? HOT 1
- 能否支持屏蔽返回IPV6结果 HOT 1
- 请教下,能否支持mips_24kc架构的openwrt HOT 1
- mosdns-cn下一个版本是否考虑支持RFC8484格式 HOT 1
- Difference in cache between mosdns-cn and mosdns
- 能否支持过滤本地PTR查询?
- 强制结束进程后无法启动 HOT 1
- 在路由器pppoe重拨时,容易产生大量错误日志内存吃爆导致进程被kill HOT 1
- 如何在梅林上安装呢?
- go1.19 support
- 域名表的默认匹配模式与预期的模式不同
- Doh and tls
- 使用例子中的仅转发不分流 带有缓存吗?
- Cache mechanism is not working
- 请问支持 freebsd 吗?
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-cn.