.\" Man page generated from reStructuredText. . .TH "PDNS_CONTROL" "1" "Jan 31, 2019" "4.1" "PowerDNS Recursor" .SH NAME pdns_control \- . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .sp \fBpdns_control\fP \- Control the PowerDNS nameserver .SH SYNOPSIS .sp \fBpdns_control\fP [\fIOPTION\fP]... \fICOMMAND\fP .SH DESCRIPTION .sp \fBpdns_control\fP is used to send commands to a running PowerDNS nameserver. .SH OPTIONS .INDENT 0.0 .TP .B \-\-help Show summary of options. .TP .BI \-\-chroot\fB= Directory where PowerDNS is chrooted. .TP .BI \-\-config\-dir\fB= Location of configuration directory (pdns.conf). .TP .BI \-\-config\-name\fB= Name of this virtual configuration \- will rename the binary image. .TP .BI \-\-remote\-address\fB=
Remote address to query. .TP .BI \-\-remote\-port\fB= Remote port to query. .TP .BI \-\-secret\fB= Secret needed to connect to remote PowerDNS. .TP .BI \-\-socket\-dir\fB= Where the controlsocket lives. .UNINDENT .SH COMMANDS .SS bind\-add\-zone \fIDOMAIN\fP \fIFILENAME\fP .sp When using the bindbackend, add a zone. This zone is added in\-memory and served immediately. Note that this does not add the zone to the bind\-config file. \fIFILENAME\fP must be an absolute path. .SS bind\-domain\-status [\fIDOMAIN\fP\&...] .sp When using the bindbackend, list status of all domains. Optionally, append \fIDOMAIN\fPs to get the status of specific zones. .SS bind\-list\-rejects .sp When using the bindbackend, get a list of all rejected domains. .SS bind\-reload\-now \fIDOMAIN\fP [\fIDOMAIN\fP\&...] .sp When using the bindbackend, immediately reload \fIDOMAIN\fP from disk. .SS ccounts .sp Show the content of the cache. .SS current\-config .sp Show the currently running configuration. The output has the same format as \fBpdns_server \-\-config\fP\&. You\(aqll notice that all the are uncommented. This is because PowerDNS simply has values, and the default isn\(aqt known at runtime. .SS cycle .sp Restart the nameserver so it reloads its configuration. Only works when the server is running in guardian mode. .SS list .sp Dump all variables and their values in a comma separated list, equivalent to \fBshow *\fP\&. .SS list\-zones [master,slave,native] .sp Show a list of zones, optionally filter on the type of zones to show. .SS notify \fIDOMAIN\fP .sp Adds \fIDOMAIN\fP to the notification list, causing PowerDNS to send out notifications to the nameservers of a domain. Can be used if a slave missed previous notifications or is generally hard of hearing. Use * to notify for all domains. (Note that you may need to escape the * sign in your shell.) .SS notify\-host \fIDOMAIN\fP \fIADDRESS\fP .sp Same as above but with operator specified IP \fIADDRESS\fP as destination, to be used if you know better than PowerDNS. .SS ping, rping .sp Check if the server is still alive. Will return \(aqPONG\(aq when it is. \fBping\fP works when running inside a guardian, whereas \fBrping\fP works when running without a guardian. .SS purge [\fIRECORD\fP] .sp Purge entries from the cache. If \fIRECORD\fP ends with a dollar ($) all entries that end with that name are removed. If no record is specified the entire cache is purged. .SS qtypes .sp Get a count of queries per qtype on standard out. .SS quit .sp Tell a running pdns_server to quit. .SS rediscover .sp Instructs backends that new domains may have appeared in the database, or, in the case of the Bind backend, in named.conf. .SS reload .sp Instruct the server to reload all its zones, this will not add new zones. .SS remotes .sp Get the top number of remote addresses (clients). .SS respsizes .sp Get a histogram of the response sizes. .SS retrieve \fIDOMAIN\fP .sp Retrieve slave \fIDOMAIN\fP from its master. Done nearly immediately. .SS set \fIVARIABLE\fP \fIVALUE\fP .sp Set the configuration parameter \fIVARIABLE\fP to \fIVALUE\fP\&. Currently only the query\-logging can be set. .SS show \fIVARIABLE\fP .sp Show a single statistic, as present in the output of the list command. .SS status .sp Show usage statistics. This only works if the server is running in guardian mode. .SS token\-login \fIMODULE\fP \fISLOT\fP \fIPIN\fP .sp Log on to a PKCS#11 slot. You only need to login once per slot, even if you have multiple keys on single slot. Only available if PowerDNS was compiled with PKCS#11 support. .SS uptime .sp Show the uptime of the running server. .SS version .sp Print the version of the running pdns daemon. .SH SEE ALSO .sp pdns_server(1) .SH AUTHOR PowerDNS.COM BV .SH COPYRIGHT 2001-2018, PowerDNS.COM BV .\" Generated by docutils manpage writer. .