From: Josh Soref Date: Thu, 31 May 2018 05:20:15 +0000 (+0000) Subject: Recursor: try to document how to handle systemd private tmp X-Git-Tag: dnsdist-1.3.1~18^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dfd8f305ef6974426b49c0177e991f098fb88101;p=pdns Recursor: try to document how to handle systemd private tmp --- diff --git a/pdns/recursordist/docs/manpages/rec_control.1.rst b/pdns/recursordist/docs/manpages/rec_control.1.rst index 3692416fd..a54af53ca 100644 --- a/pdns/recursordist/docs/manpages/rec_control.1.rst +++ b/pdns/recursordist/docs/manpages/rec_control.1.rst @@ -74,23 +74,55 @@ dump-cache *FILENAME* also dumped to the same file. The per-thread positive and negative cache dumps are separated with an appropriate comment. + .. note:: + + :program:`pdns_recursor` often runs in a chroot. You can + retrieve the file using:: + + rec_control dump-cache /tmp/file + mv /proc/$(pidof pdns_recursor)/root/tmp/file /tmp/filename + dump-edns *FILENAME* 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. + .. note:: + + :program:`pdns_recursor` often runs in a chroot. You can + retrieve the file using:: + + rec_control dump-edns /tmp/file + mv /proc/$(pidof pdns_recursor)/root/tmp/file /tmp/filename + dump-nsspeeds *FILENAME* Dumps the nameserver speed statistics to the *FILENAME* mentioned. This file should not exist already, PowerDNS will refuse to overwrite it. While dumping, the recursor will not answer questions. Statistics are kept per thread, and the dumps end up in the same file. + .. note:: + + :program:`pdns_recursor` often runs in a chroot. You can + retrieve the file using:: + + rec_control dump-nsspeeds /tmp/file + mv /proc/$(pidof pdns_recursor)/root/tmp/file /tmp/filename + dump-rpz *ZONE NAME* *FILE NAME* Dumps the content of the RPZ zone named *ZONE NAME* to the *FILENAME* mentioned. This file should not exist already, PowerDNS will refuse to overwrite it otherwise. While dumping, the recursor will not answer questions. + .. note:: + + :program:`pdns_recursor` often runs in a chroot. You can + retrieve the file using:: + + rec_control dump-rpz ZONE_NAME /tmp/file + mv /proc/$(pidof pdns_recursor)/root/tmp/file /tmp/filename + get *STATISTIC* [*STATISTIC*]... Retrieve a statistic. For items that can be queried, see :doc:`../metrics`