跳到主要内容

命令行工具

OxiDNS 只有一个 oxidns 二进制。本页按任务导航命令;完整参数和行为说明位于三个专题页。

常用任务

目标命令参考
校验配置oxidns check -c config.yaml配置与数据工具
前台启动oxidns start -c config.yaml运行、探测与系统服务
临时调试日志oxidns start -c config.yaml -l debug运行、探测与系统服务
探测上游oxidns probe upstream tcp://1.1.1.1:53运行、探测与系统服务
安装系统服务sudo oxidns service install -d /var/lib/oxidns -c /etc/oxidns/config.yaml运行、探测与系统服务
查看编译能力oxidns build-info配置与数据工具
导出 dat 规则oxidns export-dat ...配置与数据工具
检查或应用升级oxidns upgrade check / oxidns upgrade apply升级命令

帮助与退出码

使用 oxidns --help 查看顶层命令,使用 oxidns <subcommand> --help 查看当前二进制支持的完整参数。自动化流程应检查进程退出码:成功为 0,参数、校验或运行错误返回非零值。

oxidns --help
oxidns check --help
oxidns probe upstream --help
oxidns upgrade --help

旧版章节书签会落到本入口页,请使用上表进入拆分后的命令说明。