root/trunk/pdns/pdns/docs/rec_control.1.txt @ 1366

Revision 1366, 2.5 KB (checked in by ahu, 4 years ago)

implement & document rec_control --timeout feature, useful when (re)loading very large lua scripts

Line 
1REC_CONTROL(1)
2==============
3bert hubert <bert.hubert@netherlabs.nl>
4v3.0, 19 April 2006
5
6NAME
7----
8rec_control - control pdns_recursor
9
10SYNOPSIS
11--------
12'rec_control' [--help] [--socket-dir] [--socket-pid] command ..
13
14DESCRIPTION
15-----------
16rec_control(1) allows the operator to control a running instance
17of the pdns_recursor.
18
19The commands that can be passed to the recursor are described on
20http://doc.powerdns.com/rec-control.html
21
22EXAMPLES
23--------
24
25To stop the recursor by hand, run:
26
27        # rec_control quit
28
29To dump the cache to disk, execute:
30
31        # rec_control dump-cache /tmp/the-cache
32
33OPTIONS
34-------
35
36--help::
37        provide this helpful message
38
39--socket-dir::
40        Where the controlsocket will live
41
42--socket-pid::
43        When running in SMP mode, pid of pdns_recursor to control
44
45--timeout::
46        Number of seconds to wait for the remote PowerDNS Recursor to
47        respond. Set to 0 for infinite.
48
49COMMANDS
50--------
51dump-cache filename::
52        Dumps the entire cache to the filename mentioned. This file should
53        not exist already, PowerDNS will refuse to overwrite it. While
54        dumping, the recursor will not answer questions.
55
56get statistic::
57        Retrieve a statistic. For items that can be queried, see
58        http://doc.powerdns.com/recursor-stats.html
59
60ping::
61        Check if server is alive.
62
63quit::
64        Request shutdown of the recursor
65
66reload-zones::
67        Reload authoritative and forward zones. Retains current configuration
68        in case of errors.
69
70top-remotes::
71        Shows the top-20 most active remote hosts. Statistics are over the
72        last 'remotes-ringbuffer-entries' queries, which defaults to 0.
73
74wipe-cache domain0 [domain1]::
75        Wipe entries from the cache. This is useful if, for example, an
76        important server has a new IP address, but the TTL has not yet
77        expired. Multiple domain names can be passed. Note that you must
78        terminate a domain with a .!  So to wipe powerdns.org, issue
79        'rec_control wipe-cache powerdns.org.'.
80        Versions beyond 3.1 don't need the trailing dot. Consider not only
81        wiping 'www.domain.com.' but also 'domain.com.', as the cached nameservers
82        or target of CNAME may continue to be undesired.
83
84BUGS
85----
86None known. File new ones at http://wiki.powerdns.com.
87
88AUTHOR
89------
90Written by PowerDNS.COM BV, bert hubert, <bert.hubert@netherlabs.nl>
91
92RESOURCES
93---------
94Website: http://wiki.powerdns.com, http://www.powerdns.com
95
96SEE ALSO
97--------
98pdns_recursor(1)
99
100COPYING
101-------
102Copyright (C) 2006 PowerDNS.COM BV. Free use of this software
103is granted under the terms of the GNU General Public License (GPL) version
1042.
105
Note: See TracBrowser for help on using the browser.