DNSBackend *dbd;
BOOST_TEST_MESSAGE("Testing superMasterBackend method");
- rr.qname = "example.com";
+ rr.qname = DNSName("example.com");
rr.qtype = QType::NS;
rr.qclass = QClass::IN;
rr.ttl = 300;
rr.content = "ns1.example.com";
nsset.push_back(rr);
- rr.qname = "example.com";
+ rr.qname = DNSName("example.com");
rr.qtype = QType::NS;
rr.qclass = QClass::IN;
rr.ttl = 300;
DNSResourceRecord rr;
BOOST_TEST_MESSAGE("Testing feedRecord method");
be->startTransaction(DNSName("example.com"),2);
- rr.qname = "example.com";
+ rr.qname = DNSName("example.com");
rr.qtype = QType::SOA;
rr.qclass = QClass::IN;
rr.ttl = 300;
rr.content = "ns1.example.com hostmaster.example.com 2013013441 7200 3600 1209600 300";
BOOST_CHECK(be->feedRecord(rr, NULL));
- rr.qname = "replace.example.com";
+ rr.qname = DNSName("replace.example.com");
rr.qtype = QType::A;
rr.qclass = QClass::IN;
rr.ttl = 300;
DNSResourceRecord rr;
std::vector<DNSResourceRecord> rrset;
BOOST_TEST_MESSAGE("Testing replaceRRSet method");
- rr.qname = "replace.example.com";
+ rr.qname = DNSName("replace.example.com");
rr.qtype = QType::A;
rr.qclass = QClass::IN;
rr.ttl = 300;