From: Petr Špaček Date: Thu, 2 Jan 2020 17:16:12 +0000 (+0100) Subject: docs: remove references to kresd-host.lua and kresd-query.lua X-Git-Tag: v5.0.0~8^2~45 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=460316dee20b02da7caad7055139fc274ef904fc;p=thirdparty%2Fknot-resolver.git docs: remove references to kresd-host.lua and kresd-query.lua These are hacks and we do not support them in any way. --- diff --git a/daemon/README.rst b/daemon/README.rst index 7e98c753d..52000f258 100644 --- a/daemon/README.rst +++ b/daemon/README.rst @@ -600,42 +600,6 @@ To spawn the daemon manually and configure it to run every second, use: $ kres-cache-gc -c /var/cache/knot-resolver -d 1000 - -Using CLI tools -=============== - -* ``kresd-host.lua`` - a drop-in replacement for *host(1)* utility - -Queries the DNS for information. -The hostname is looked up for IP4, IP6 and mail. - -Example: - -.. code-block:: bash - - $ kresd-host.lua -f root.key -v nic.cz - nic.cz. has address 217.31.205.50 (secure) - nic.cz. has IPv6 address 2001:1488:0:3::2 (secure) - nic.cz. mail is handled by 10 mail.nic.cz. (secure) - nic.cz. mail is handled by 20 mx.nic.cz. (secure) - nic.cz. mail is handled by 30 bh.nic.cz. (secure) - -* ``kresd-query.lua`` - run the daemon in zero-configuration mode, perform a query and execute given callback. - -This is useful for executing one-shot queries and hooking into the processing of the result, -for example to check if a domain is managed by a certain registrar or if it's signed. - -Example: - -.. code-block:: bash - - $ kresd-query.lua www.sub.nic.cz 'assert(kres.dname2str(req:resolved().zone_cut.name) == "nic.cz.")' && echo "yes" - yes - $ kresd-query.lua -C 'trust_anchors.add_file("root.keys")' nic.cz 'assert(req:resolved().flags.DNSSEC_WANT)' - $ echo $? - 0 - - .. _`JSON-encoded`: http://json.org/example .. _`Learn Lua in 15 minutes`: http://tylerneylon.com/a/learn-lua/ .. _`PowerDNS Recursor`: https://doc.powerdns.com/md/recursor/scripting/