From 910fa841fd175b970fb38ea7ff7fdc50d9528866 Mon Sep 17 00:00:00 2001 From: bert hubert Date: Tue, 27 Oct 2015 15:35:41 +0100 Subject: [PATCH] PYTHON FOLKS! kvresp.cc wants to become kvresp.py! s/dumresp/kvresp/, plus document tool a little bit --- pdns/kv-example-script.lua | 2 ++ pdns/kvresp.cc | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) 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"<