]> git.ipfire.org Git - thirdparty/pdns.git/blame - docs/manpages/pdns_control.1.rst
Merge pull request #8826 from rgacogne/nsec-invalid-bitmap-len
[thirdparty/pdns.git] / docs / manpages / pdns_control.1.rst
CommitLineData
0e2063c3
PL
1pdns_control
2============
3
0e2063c3
PL
4Synopsis
5--------
6
7:program:`pdns_control` [*OPTION*]... *COMMAND*
8
9Description
10-----------
11
12:program:`pdns_control` is used to send commands to a running PowerDNS
13nameserver.
14
15Options
16-------
17
18--help Show summary of options.
19--chroot=<DIR> Directory where PowerDNS is chrooted.
20--config-dir=<DIR> Location of configuration directory (pdns.conf).
21--config-name=<NAME> Name of this virtual configuration - will rename the binary image.
22--remote-address=<ADDRESS> Remote address to query.
23--remote-port=<PORT> Remote port to query.
24--secret=<SECRET> Secret needed to connect to remote PowerDNS.
25--socket-dir=<DIR> Where the controlsocket lives.
26
27Commands
28--------
29
30bind-add-zone *DOMAIN* *FILENAME*
31^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
32
efdd3d7c 33When using the BIND backend, add a zone. This zone is added in-memory
0e2063c3
PL
34and served immediately. Note that this does not add the zone to the
35bind-config file. *FILENAME* must be an absolute path.
36
e640604f
RG
37bind-domain-extended-status [*DOMAIN*...]
38~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
39
40Output an extended status of all domains, containing much more information than
41the simple domain status, like the number of records currently loaded, whether pdns
42is master or slave for the domain, the list of masters, various timers, etc
43Optionally, append *DOMAIN*\ s to get the status of specific zones.
44
0e2063c3
PL
45bind-domain-status [*DOMAIN*...]
46^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
47
efdd3d7c 48When using the BIND backend, list status of all domains. Optionally,
0e2063c3
PL
49append *DOMAIN*\ s to get the status of specific zones.
50
51bind-list-rejects
52^^^^^^^^^^^^^^^^^
53
efdd3d7c 54When using the BIND backend, get a list of all rejected domains.
0e2063c3
PL
55
56bind-reload-now *DOMAIN* [*DOMAIN*...]
57^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
58
efdd3d7c 59When using the BIND backend, immediately reload *DOMAIN* from disk.
0e2063c3
PL
60
61ccounts
62^^^^^^^
63
64Show the content of the cache.
65
8864bdf6
KM
66current-config [diff]
67^^^^^^^^^^^^^^^^^^^^^
0e2063c3 68
8864bdf6 69Show the currently running configuration. The output has the same format as ``pdns_server --config``. With the diff option only modified options are included in the output.
0e2063c3
PL
70
71cycle
72^^^^^
73
74Restart the nameserver so it reloads its configuration. Only works
75when the server is running in guardian mode.
76
77list
78^^^^
79
80Dump all variables and their values in a comma separated list,
81equivalent to ``show *``.
82
83list-zones [master,slave,native]
84^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
85
86Show a list of zones, optionally filter on the type of zones to
87show.
88
89notify *DOMAIN*
90^^^^^^^^^^^^^^^
91
92Adds *DOMAIN* to the notification list, causing PowerDNS to send out
93notifications to the nameservers of a domain. Can be used if a slave
94missed previous notifications or is generally hard of hearing. Use
95\* to notify for all domains. (Note that you may need to escape the
96\* sign in your shell.)
97
98notify-host *DOMAIN* *ADDRESS*
99^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
100
101Same as above but with operator specified IP *ADDRESS* as
102destination, to be used if you know better than PowerDNS.
103
104ping, rping
105^^^^^^^^^^^
106
107Check if the server is still alive. Will return 'PONG' when it is.
108``ping`` works when running inside a guardian, whereas ``rping``
109works when running without a guardian.
110
111purge [*RECORD*]
112^^^^^^^^^^^^^^^^
113
114Purge entries from the cache. If *RECORD* ends with a dollar ($) all
115entries that end with that name are removed. If no record is
116specified the entire cache is purged.
117
118qtypes
119^^^^^^
120
121Get a count of queries per qtype on standard out.
122
123quit
124^^^^
125
126Tell a running pdns\_server to quit.
127
128rediscover
129^^^^^^^^^^
130
131Instructs backends that new domains may have appeared in the
efdd3d7c 132database, or, in the case of the BIND backend, in named.conf.
0e2063c3
PL
133
134reload
135^^^^^^
136
137Instruct the server to reload all its zones, this will not add new
138zones.
139
140remotes
141^^^^^^^
142
143Get the top number of remote addresses (clients).
144
145respsizes
146^^^^^^^^^
147
148Get a histogram of the response sizes.
149
150retrieve *DOMAIN*
151^^^^^^^^^^^^^^^^^
152
153Retrieve slave *DOMAIN* from its master. Done nearly immediately.
154
155set *VARIABLE* *VALUE*
156^^^^^^^^^^^^^^^^^^^^^^
157
158Set the configuration parameter *VARIABLE* to *VALUE*. Currently
159only the query-logging can be set.
160
161show *VARIABLE*
162^^^^^^^^^^^^^^^
163
164Show a single statistic, as present in the output of the list
165command.
166
167status
168^^^^^^
169
170Show usage statistics. This only works if the server is running in
171guardian mode.
172
173token-login *MODULE* *SLOT* *PIN*
174^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
175
176Log on to a PKCS#11 slot. You only need to login once per slot, even
177if you have multiple keys on single slot. Only available if PowerDNS
178was compiled with PKCS#11 support.
179
180uptime
181^^^^^^
182
183Show the uptime of the running server.
184
185version
186^^^^^^^
187
188Print the version of the running pdns daemon.
189
190See also
191--------
192
193pdns\_server(1)