用的最新版,log 怎么配置都没有其他输出。
就输出启动完的日志就没了INFO all plugins are loaded
。
想开 debug 看下交互日志都没有。
不知道是不是我配置有问题。。。
log:
level: debug
plugins:
# 缓存
- tag: cache
type: cache
args:
size: 10240
lazy_cache_ttl: 86400
# 转发本地 DNS
- tag: forward_local
type: forward
args:
concurrent: 1
upstreams:
- addr: udp://192.168.88.1
# 转发国外 DNS
- tag: forward_remote
type: forward
args:
concurrent: 1
upstreams:
- addr: 192.168.88.2:5353
# china ip
- tag: cn_ip
type: ip_set
args:
files:
- /etc/mosdns/CN-ip-cidr.txt
# lan ip
- tag: lan_ip
type: ip_set
args:
files:
- /etc/mosdns/LAN-ip-cidr.txt
# 直连域名
- tag: direct_list
type: domain_set
args:
files:
- /etc/mosdns/direct-list.txt
# 代理域名
- tag: proxy_list
type: domain_set
args:
files:
- /etc/mosdns/proxy-list.txt
# fallback 的 primary 服务器
- tag: local_sequence
type: sequence
args:
- exec: $forward_local
- matches: resp_ip $lan_ip
exec: accept
- matches: resp_ip $cn_ip
exec: accept
- exec: drop_resp
# fallback 的 secondary 服务器
- tag: remote_sequence
type: sequence
args:
- exec: $forward_remote
- exec: accept
# fallback sequence
- tag: fallback
type: fallback
args:
primary: local_sequence
secondary: remote_sequence
threshold: 500
always_standby: true
# 主运行序列
- tag: main_sequence
type: sequence
args:
# drop https query type
- matches:
- qtype 65
exec: reject 3
# handle local ptr
- matches:
- qtype 12
exec: $forward_local
- matches: has_resp
exec: accept
# 国内直连域名
- matches:
- qname $direct_list
exec: $forward_local
- matches: has_resp
exec: accept
# 国外代理域名
- matches:
- qname $proxy_list
exec: $forward_remote
- matches: has_resp
exec: accept
- exec: $fallback
# 启动监听服务
- tag: udp_server
type: udp_server
args:
entry: main_sequence
listen: :53
- tag: tcp_server
type: tcp_server
args:
entry: main_sequence
listen: :53
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.