From: bert hubert Date: Mon, 21 Dec 2015 11:04:41 +0000 (+0000) Subject: example script correction X-Git-Tag: dnsdist-1.0.0-alpha1~45^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2143b84113591458382b8f276185bf63c97ea7b9;p=pdns example script correction --- diff --git a/pdns/powerdns-example-script.lua b/pdns/powerdns-example-script.lua index f67cd455c..7c4ce2e96 100644 --- a/pdns/powerdns-example-script.lua +++ b/pdns/powerdns-example-script.lua @@ -12,7 +12,7 @@ malwareset:add("nl") -- shows the various ways of blocking, dropping, changing questions -- return false to say you did not take over the question, but we'll still listen to 'variable' -- to selectively disable the cache -function preresolve1(dq) +function preresolve(dq) print("Got question for "..dq.qname:toString()) if blockset:check(dq.qname) then @@ -91,7 +91,7 @@ end nxdomainsuffix=newDN("com") -function preresolve(dq) +function nxdomain(dq) print("Hooking: ",dq.qname:toString()) if dq.qname:isPartOf(nxdomainsuffix) then