From ad3050e674fe6cbcfe0f14958fc424d6f50b4b74 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Mon, 9 Dec 2024 11:23:56 +0100 Subject: [PATCH] rec: minor doc fixes Fixes #14860 --- pdns/recursordist/docs/lua-scripting/dnsname.rst | 10 +++++----- pdns/recursordist/docs/manpages/rec_control.1.rst | 2 +- pdns/recursordist/docs/running.rst | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/pdns/recursordist/docs/lua-scripting/dnsname.rst b/pdns/recursordist/docs/lua-scripting/dnsname.rst index 8b24df7ca828..20e72284104d 100644 --- a/pdns/recursordist/docs/lua-scripting/dnsname.rst +++ b/pdns/recursordist/docs/lua-scripting/dnsname.rst @@ -19,13 +19,13 @@ A small example of the functionality of a :class:`DNSName` is shown below: .. code-block:: lua myname = newDN("www.example.com") - print(myname:countLabels()) -- prints "3" - print(myname:wirelength()) -- prints "17" + pdnslog(myname:countLabels()) -- prints "3" + pdnslog(myname:wirelength()) -- prints "17" name2 = newDN(myname) - name2:chopoff() -- returns true, as 'www' was stripped - print(name2:countLabels()) -- prints "2" + name2:chopOff() -- returns true, as 'www' was stripped + pdnslog(name2:countLabels()) -- prints "2" if myname:isPartOf(name2) then -- prints "it is" - print('it is') + pdnslog('it is') end Functions and methods of a ``DNSName`` diff --git a/pdns/recursordist/docs/manpages/rec_control.1.rst b/pdns/recursordist/docs/manpages/rec_control.1.rst index 80b779147994..3f63486704e6 100644 --- a/pdns/recursordist/docs/manpages/rec_control.1.rst +++ b/pdns/recursordist/docs/manpages/rec_control.1.rst @@ -257,7 +257,7 @@ set-event-trace-enabled *NUM* ``2`` = log file, ``3`` = protobuf and log file. show-yaml [*FILE*] - Show Yaml representation of odl-style config. + Show Yaml representation of old-style config. top-queries Shows the top-20 queries. Statistics are over the last diff --git a/pdns/recursordist/docs/running.rst b/pdns/recursordist/docs/running.rst index a586164155b2..6ed70fefd99f 100644 --- a/pdns/recursordist/docs/running.rst +++ b/pdns/recursordist/docs/running.rst @@ -115,7 +115,7 @@ Logging details of queries and answers -------------------------------------- In some cases a tracing provides too much information, and we want to follow what the recursor is doing on a higher level. -By setting :ref:`setting-yaml-logging.quiet` to ``true`` the recursor will produce a log line for each client query received and answered. +By setting :ref:`setting-quiet` to ``true`` the recursor will produce a log line for each client query received and answered. Be aware that this causes overhead and should not be used in a high query-per-second production environment:: Jul 09 09:08:31 msg="Question" subsystem="syncres" level="0" prio="Info" tid="4" ts="1720508911.919" ecs="" mtid="1" proto="udp" qname="www.example.com" qtype="A" remote="127.0.0.1:54573"