+/** A test resolver class for IPV6
+ */
+class MyV6Resolver : public Resolver
+{
+ bool fw;
+ public:
+ MyV6Resolver(Module* me, const std::string &source, bool forward) : Resolver(ServerInstance, source, forward ? DNS_QUERY_AAAA : DNS_QUERY_PTR6, me)
+ {
+ fw = forward;
+ }
+
+ virtual void OnLookupComplete(const std::string &result)
+ {
+ ServerInstance->Log(DEBUG,"*** RESOLVER COMPLETED %s LOOKUP, IP IS: '%s'",fw ? "FORWARD" : "REVERSE", result.c_str());
+ }
+
+ virtual void OnError(ResolverError e, const std::string &errormessage)
+ {
+ ServerInstance->Log(DEBUG,"*** RESOLVER GOT ERROR: %d: %s",e,errormessage.c_str());
+ }
+};
+
+/** Handle /WOOT
+ */