.TH knotc "8" "15 July 2013" "CZ.NIC Labs" "Knot DNS, version 1.3.0-rc4" .SH NAME .B knotc \- Knot DNS control utility .SH SYNOPSIS .B knotc [\fIparameters\fR] \fI\fR [\fIaction_args\fR] .SH DESCRIPTION .SS "Parameters:" .HP \fB\-c\fR [file], \fB\-\-config\fR=\fI[file]\fR Select configuration file. .TP \fB\-s\fR [server]\fR Remote UNIX socket/IP address (default ${prefix}/var/run/knot/knot.sock) .TP \fB\-p\fR [port]\fR Remote server port (only for IP). .TP \fB\-y\fR [hmac:]name:key]\fR Use key_id for specified on the command line. .TP \fB\-k\fR [file]\fR Use key file (as in config section 'keys'). f.e. echo "knotc\-key hmac\-md5 Wg==" > knotc.key If you omit algorithm, hmac\-md5 will be used as default. .TP \fB\-f\fR, \fB\-\-force\fR Force operation \- override some checks. .TP \fB\-v\fR, \fB\-\-verbose\fR Verbose mode \- additional runtime information. .TP \fB\-V\fR, \fB\-\-version\fR Print knot server version. .TP \fB\-w\fR, \fB\-\-wait\fR Wait for the server to finish stop operation. .TP \fB\-i\fR, \fB\-\-interactive\fR Interactive mode (do not daemonize). .TP \fB\-h\fR, \fB\-\-help\fR Print help and usage. .SS "Actions:" .TP stop Stop knot server daemon (no\-op if not running). .TP reload Reload knot configuration and zones. .TP flush Flush journal and update zone files. .TP status Check if server is running. .TP zonestatus Show status of configured zones. .TP refresh Refresh slave zones (all if not specified). .TP checkconf Check server configuration. .TP checkzone Check zones before compiling (accepts specific zones, f.e. 'knotc checkzone example1.com example2.com'). .TP memstats Estimate memory consumption for zone files. Useful mainly for big zones. .SS "EXAMPLES" .TP .B Setup a keyfile for remote control .TP 1. Generate keys dnssec\-keygen \-a hmac\-md5 \-b 256 \-n HOST knotc\-key .TP 2. Extract secret in base64 format and create keyfile echo "knotc\-key hmac\-md5 " > knotc.key Make sure the key can be read/written only by owner for security reasons. .TP .B Reload server remotely knotc \-s 127.0.0.1 \-k knotc.key reload .SH "SEE ALSO" The full documentation for .B Knot is maintained as a Texinfo manual. If the .B info and .B Knot programs are properly installed at your site, the command .IP .B info Knot .PP should give you access to the complete manual.