Repository navigation
-
Added ECS Removal Support
Usage Example:
- tag: remove_ecs type: ecs_handler args: remove: true # 从查询中移除所有 ECS 选项
-
Added domain_output
Ported from yyysuo/mosdnsUsage Example:
- tag: my_domain_output type: domain_output args: file_stat: /cus/mosdns/gen/domain_stats.txt # 域名统计信息文件路径(格式: `0000000123 google.com`) file_rule: /cus/mosdns/gen/domain_rules.txt # mosdns 使用的域名规则文件(格式:`full:域名`) gen_rule: /cus/AdGuardHome/data/userfilters/custom.txt # AdGuard Home 使用规则文件(可选) pattern: "[/DOMAIN/]127.0.0.1:7874" # AdGuard Home 使用规则生成模板(可选) appended_string: "# Auto-generated DNS rules" # AdGuard Home 规则文件开头附加内容(可选) max_entries: 1000 # 触发写入文件的域名数量 dump_interval: 3600 # 定时写入文件的时间间隔(秒)
-
pattern: "[/DOMAIN/]127.0.0.1:7874"- 作用: 定义 AdGuard Home 的规则生成模板(可选)
- DOMAIN 占位符会被替换为实际域名
- 示例结果:[/google.com/]127.0.0.1:7874
- 与 gen_rule 配合使用
-
appended_string: "# Auto-generated DNS rules"- 作用: 在生成的 AdGuard Home 规则文件第一行插入固定内容(可选)
- 与 gen_rule 配合使用
-