knotc

control utility for Knot DNS server

TLDR

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]

SYNOPSIS

knotc [options] action [args...]

DESCRIPTION

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.

PARAMETERS

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.

INSTALL

sudo apt install knot
sudo dnf install knot
sudo pacman -S knot
sudo apk add knot
sudo zypper install knot
brew install knot

SEE ALSO

kdig(1)