]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
scripts: kresd-query.lua (new)
authorMarek Vavrusa <marek@vavrusa.com>
Fri, 22 Jan 2016 07:48:58 +0000 (23:48 -0800)
committerMarek Vavrusa <marek@vavrusa.com>
Fri, 22 Jan 2016 07:48:58 +0000 (23:48 -0800)
commitb81be10ed76c30a3afa329c6f26f8fb5bce8f93d
treebaccbce90a40e8866787793b2908e54f6deae2ec
parentf8500573887e4d22d5a849b59f51dd37d4714a6a
scripts: kresd-query.lua (new)

this is a boilerplate for a CLI utility to resolve
names and execute script on query response
in another words, "a jq for resolver answers"

this is a scaffolding for alternative tools like
'host' or a plug-in part for scripting around it.

it basically starts a kresd instance, but doesn't
bind to any interface or read configuration,
then a query + callback is sent to kresd standard
input, and it quits after the execution
scripts/kresd-query.lua [new file with mode: 0755]