File: rec_control.1

package info (click to toggle)
pdns-recursor 3.7.3-1~bpo8%2B1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports
  • size: 1,516 kB
  • sloc: cpp: 25,908; ansic: 1,938; sh: 592; makefile: 137
file content (190 lines) | stat: -rw-r--r-- 3,954 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
.TH REC_CONTROL 1 "April 2006" 
.SH NAME
.PP
rec_control - control pdns_recursor
.SH SYNOPSIS
.PP
\f[B]rec_control\f[] [\f[I]OPTION\f[]]...
\f[I]COMMAND\f[] [\f[I]COMMAND-OPTION\f[]]...
.SS DESCRIPTION
.PP
rec_control(1) allows the operator to control a running instance of the
pdns_recursor.
.PP
The commands that can be passed to the recursor are described on
http://doc.powerdns.com/md/recursor/running/#rec_control-commands
.SH EXAMPLES
.PP
To stop the recursor by hand, run:
.PP
\f[C]#\ rec_control\ quit\f[]
.PP
To dump the cache to disk, execute:
.PP
\f[C]#\ rec_control\ dump-cache\ /tmp/the-cache\f[]
.SH OPTIONS
.TP
.B --help
provide this helpful message.
.RS
.RE
.TP
.B --socket-dir=\f[I]PATH\f[]
Where the controlsocket will live.
.RS
.RE
.TP
.B --socket-pid=\f[I]PID\f[]
When running in SMP mode, pid of \f[B]pdns_recursor\f[] to control.
.RS
.RE
.TP
.B --timeout=\f[I]NUM\f[]
Number of seconds to wait for the remote PowerDNS Recursor to respond.
Set to 0 for infinite.
.RS
.RE
.SH COMMANDS
.TP
.B current-queries
Shows the currently active queries.
.RS
.RE
.TP
.B dump-cache \f[I]FILENAME\f[]
Dumps the entire cache to \f[I]FILENAME\f[].
This file should not exist already, PowerDNS will refuse to overwrite
it.
While dumping, the recursor will not answer questions.
.RS
.RE
.TP
.B dump-edns \f[I]FILENAME\f[]
Dumps the EDNS status to the filename mentioned.
This file should not exist already, PowerDNS will refuse to overwrite
it.
While dumping, the recursor will not answer questions.
.RS
.RE
.TP
.B dump-nsspeeds \f[I]FILENAME\f[]
Dumps the nameserver speed statistics to the \f[I]FILENAME\f[]
mentioned.
This file should not exist already, PowerDNS will refuse to overwrite
it.
While dumping, the recursor will not answer questions.
.RS
.RE
.TP
.B get \f[I]STATISTIC\f[] [\f[I]STATISTIC\f[]]...
Retrieve a statistic.
For items that can be queried, see
http://doc.powerdns.com/md/recursor/stats/
.RS
.RE
.TP
.B get-all
Retrieve all known statistics.
.RS
.RE
.TP
.B get-parameter \f[I]KEY\f[] [\f[I]KEY\f[]]...
Retrieves the specified configuration parameter(s).
.RS
.RE
.TP
.B get-qtypelist
Retrieves QType statistics.
Queries from cache aren\[aq]t being counted yet.
.RS
.RE
.TP
.B help
Shows a list of supported commands.
.RS
.RE
.TP
.B ping
Check if server is alive.
.RS
.RE
.TP
.B quit
Request shutdown of the recursor.
.RS
.RE
.TP
.B quit-nicely
Request nice shutdown of the recursor.
.RS
.RE
.TP
.B reload-acls
Reloads ACLs.
.RS
.RE
.TP
.B reload-lua-script \f[I]FILENAME\f[]
(Re)loads Lua script \f[I]FILENAME\f[].
.RS
.RE
.TP
.B reload-zones
Reload authoritative and forward zones.
Retains current configuration in case of errors.
.RS
.RE
.TP
.B set-minimum-ttl \f[I]NUM\f[]
Set minimum-ttl-override to \f[I]NUM\f[].
.RS
.RE
.TP
.B top-remotes
Shows the top-20 most active remote hosts.
Statistics are over the last \[aq]remotes-ringbuffer-entries\[aq]
queries, which defaults to 0.
.RS
.RE
.TP
.B trace-regex \f[I]REGEX\f[]
Emit resolution trace for matching queries.
Empty regex to disable trace.
.RS
.RE
.TP
.B unload-lua-script
Unloads Lua script.
.RS
.RE
.TP
.B version
Report running version.
.RS
.RE
.TP
.B wipe-cache \f[I]DOMAIN\f[] [\f[I]DOMAIN\f[]] [...]
Wipe entries for \f[I]DOMAIN\f[] from the cache.
This is useful if, for example, an important server has a new IP
address, but the TTL has not yet expired.
Multiple domain names can be passed.
Note that you must terminate a domain with a .! So to wipe powerdns.org,
issue \[aq]rec_control wipe-cache powerdns.org.\[aq].
Versions beyond 3.1 don\[aq]t need the trailing dot.
Consider not only wiping \[aq]www.domain.com.\[aq] but also
\[aq]domain.com.\[aq], as the cached nameservers or target of CNAME may
continue to be undesired.
.RS
.RE
.SH BUGS
.PP
None known.
File new ones at https://github.com/PowerDNS/pdns/issues.
.SH RESOURCES
.PP
Website: http://wiki.powerdns.com, http://www.powerdns.com
.SH SEE ALSO
.PP
pdns_recursor(1)
.SH AUTHORS
PowerDNS.COM BV.