← 返回命令列表

Linux command

knotc 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Check server status

knotc status

Reload server configuration

knotc reload

Stop DNS server

knotc stop

Force zone transfer

knotc zone-retransfer [zone]

Sign zone with DNSSEC

knotc zone-sign [zone]

Flush zone to file

knotc zone-flush [zone]

说明

knotc is the control utility for Knot DNS server. It communicates with the running knotd daemon through a control socket to manage zones, check status, and trigger operations. Supports interactive mode with command completion.

参数

status
Check if server is running.
reload
Reload configuration and zones.
stop
Stop the server.
zone-retransfer _zone_
Force zone transfer from master.
zone-sign _zone_
Trigger DNSSEC re-signing.
zone-flush _zone_
Flush zone journal to file.
-c _file_
Configuration file path.
-s _path_
Control socket path.
-t _seconds_
Control timeout.

FAQ

What is the knotc command used for?

knotc is the control utility for Knot DNS server. It communicates with the running knotd daemon through a control socket to manage zones, check status, and trigger operations. Supports interactive mode with command completion.

How do I run a basic knotc example?

Run `knotc status` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does status do in knotc?

Check if server is running.