/usr/bin/nsd-control: invalid option -- '-'
Usage: nsd-control [options] command
Remote control utility for nsd server.
Version 4.15.4. Report bugs to <https://github.com/NLnetLabs/nsd/issues or nsd-bugs@nlnetlabs.nl>.
Options:
-c file config file, default is /etc/nsd/nsd.conf
-s ip[@port] server address, if omitted config is used.
-h show this usage help.
Commands:
start start server; runs nsd(8)
stop stops the server
reload [<zone>] reload modified zonefiles from disk
reconfig reload the config file
repattern the same as reconfig
log_reopen reopen logfile (for log rotate)
status display status of server
stats print statistics
stats_noreset peek at statistics
addzone <name> <pattern> add a new zone
delzone <name> remove a zone
changezone <name> <pattern> change zone to use pattern
addzones add zone list on stdin {name space pattern newline}
delzones remove zone list on stdin {name newline}
write [<zone>] write changed zonefiles to disk
notify [<zone>] send NOTIFY messages to secondary servers
transfer [<zone>] try to update secondary zones to newer serial
force_transfer [<zone>] update secondary zones with AXFR, no serial check
zonestatus [<zone>] print state, serial, activity
serverpid get pid of server process
verbosity <number> change logging detail
print_tsig [<key_name>] print tsig with <name> the secret and algo
update_tsig <name> <secret> change existing tsig with <name> to a new <secret>
add_tsig <name> <secret> [algo] add new key with the given parameters
assoc_tsig <zone> <key_name> associate <zone> with given tsig <key_name> name
del_tsig <key_name> delete tsig <key_name> from configuration
add_cookie_secret <secret> add (or replace) a new cookie secret <secret>
drop_cookie_secret drop a staging cookie secret
activate_cookie_secret make a staging cookie secret active
print_cookie_secrets show all cookie secrets with their status
Options (3)
| Option | Description | Source |
|---|
-c file | config file, default is /etc/nsd/nsd.conf | help + man |
-s ip[@port | server address, if omitted config is used. | help |
-h | Show the version and commandline option help. | help + man |
Exit status (2) from the manual page
Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.