/* Query statistics */
if(p->d.aa) {
if (p->d.rcode==RCode::NXDomain)
- S.ringAccount("nxdomain-queries",p->qdomain+"/"+p->qtype.getName());
+ S.ringAccount("nxdomain-queries",p->qdomain.toString()+"/"+p->qtype.getName());
} else if (p->isEmpty()) {
- S.ringAccount("unauth-queries",p->qdomain+"/"+p->qtype.getName());
+ S.ringAccount("unauth-queries",p->qdomain.toString()+"/"+p->qtype.getName());
S.ringAccount("remotes-unauth",p->d_remote);
}
extern StatBag S;
+std::ostream & operator<<(std::ostream &os, const DNSName& d)
+{
+ return os <<"DNSName("<<d.toString()<<")";
+}
+
BOOST_AUTO_TEST_SUITE(packetcache_cc)
BOOST_AUTO_TEST_CASE(test_PacketCacheSimple) {