.. 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``
``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
--------------------------------------
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"