From: bert hubert Date: Tue, 27 Oct 2015 14:35:41 +0000 (+0100) Subject: PYTHON FOLKS! kvresp.cc wants to become kvresp.py! s/dumresp/kvresp/, plus document... X-Git-Tag: dnsdist-1.0.0-alpha1~262^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=910fa841fd175b970fb38ea7ff7fdc50d9528866;p=pdns PYTHON FOLKS! kvresp.cc wants to become kvresp.py! s/dumresp/kvresp/, plus document tool a little bit --- diff --git a/pdns/kv-example-script.lua b/pdns/kv-example-script.lua index f55fbb98c..bbfcf60d2 100644 --- a/pdns/kv-example-script.lua +++ b/pdns/kv-example-script.lua @@ -13,6 +13,8 @@ that needs to be called once the data is in. We'll add more parameters, like 'timeout' and perhaps 'protocol' as we improve this feature over time. + +To test, use the 'kvresp' example program provided. --]] function preresolve ( remoteip, domain, qtype ) diff --git a/pdns/kvresp.cc b/pdns/kvresp.cc index 89ddeaebb..63f4ad95e 100644 --- a/pdns/kvresp.cc +++ b/pdns/kvresp.cc @@ -5,13 +5,17 @@ #include "sstuff.hh" #include "statbag.hh" +/* This tool REALLY wants to be rewritten in Python, by ahu does not speak it very well. + What it does is provide answers to queries from the Lua generic UDP Question/Answer + stuff in kv-example-script.lua */ + StatBag S; int main(int argc, char** argv) try { if(argc != 3) { - cerr<<"Syntax: dumresp local-address local-port"<