X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=pdns%2Fdnsbulktest.cc;h=27a288173be8e29c02576c3c2b853d09eaef1d91;hb=876dd46192156ebb5c8d34d007d73479ad2a7802;hp=c17713dd662520674e278d9b7a9476f439f25677;hpb=e3c8c213c6c6bdf96f62a03fc1238d3d4f147a81;p=thirdparty%2Fpdns.git diff --git a/pdns/dnsbulktest.cc b/pdns/dnsbulktest.cc index c17713dd66..27a288173b 100644 --- a/pdns/dnsbulktest.cc +++ b/pdns/dnsbulktest.cc @@ -77,10 +77,8 @@ struct SendReceive boost::array d_probs; - SendReceive(const std::string& remoteAddr, uint16_t port) + SendReceive(const std::string& remoteAddr, uint16_t port) : d_probs({{0.001,0.01, 0.025, 0.1, 0.25,0.5,0.75,0.9,0.975, 0.99,0.9999}}) { - boost::array tmp ={{0.001,0.01, 0.025, 0.1, 0.25,0.5,0.75,0.9,0.975, 0.99,0.9999}}; - d_probs = tmp; d_acc = new acc_t(boost::accumulators::tag::extended_p_square::probabilities=d_probs); // //d_acc = acc_t @@ -224,6 +222,7 @@ try ("type,t", po::value()->default_value("A"), "What type to query for") ("envoutput,e", "write report in shell environment format") ("version", "show the version number") + ("www", po::value()->default_value("true"), "duplicate all queries with an additional 'www.' in front") ; po::options_description alloptions; @@ -258,6 +257,7 @@ try return EXIT_FAILURE; } + bool doWww = g_vm["www"].as(); g_quiet = g_vm.count("quiet") > 0; g_envoutput = g_vm.count("envoutput") > 0; uint16_t qtype; @@ -303,7 +303,8 @@ try continue; // this was an IP address } domains.push_back(TypedQuery(split.second, qtype)); - domains.push_back(TypedQuery("www."+split.second, qtype)); + if(doWww) + domains.push_back(TypedQuery("www."+split.second, qtype)); } cerr<<"Read "<