result.reserve(labelsCount);
while(!lowerQName.isRoot()) {
- result.emplace_back(d_wireFormat ? lowerQName.toDNSString() : lowerQName.toString());
+ result.emplace_back(d_wireFormat ? lowerQName.toDNSString() : lowerQName.toStringRootDot());
labelsCount--;
if (!lowerQName.chopOff() || labelsCount == 0) {
break;
auto keys = lookupKey->getKeys(dq);
BOOST_CHECK_EQUAL(keys.size(), dq.qname->countLabels());
BOOST_REQUIRE(!keys.empty());
- BOOST_CHECK_EQUAL(keys.at(0), dq.qname->toString());
+ BOOST_CHECK_EQUAL(keys.at(0), dq.qname->toStringRootDot());
std::string value;
BOOST_CHECK_EQUAL(kvs->getValue(keys.at(0), value), false);
value.clear();
auto dbi = transaction.openDB("db-name", MDB_CREATE);
transaction.put(dbi, MDBInVal(std::string(reinterpret_cast<const char*>(&rem.sin4.sin_addr.s_addr), sizeof(rem.sin4.sin_addr.s_addr))), MDBInVal("this is the value for the remote addr"));
transaction.put(dbi, MDBInVal(qname.toDNSStringLC()), MDBInVal("this is the value for the qname"));
- transaction.put(dbi, MDBInVal(plaintextDomain.toString()), MDBInVal("this is the value for the plaintext domain"));
+ transaction.put(dbi, MDBInVal(plaintextDomain.toStringRootDot()), MDBInVal("this is the value for the plaintext domain"));
transaction.commit();
}
CDBWriter writer(fd);
BOOST_REQUIRE(writer.addEntry(std::string(reinterpret_cast<const char*>(&rem.sin4.sin_addr.s_addr), sizeof(rem.sin4.sin_addr.s_addr)), "this is the value for the remote addr"));
BOOST_REQUIRE(writer.addEntry(qname.toDNSStringLC(), "this is the value for the qname"));
- BOOST_REQUIRE(writer.addEntry(plaintextDomain.toString(), "this is the value for the plaintext domain"));
+ BOOST_REQUIRE(writer.addEntry(plaintextDomain.toStringRootDot(), "this is the value for the plaintext domain"));
writer.close();
}
txn.put(socket.inet_aton('127.0.0.1'), b'this is the value of the source address tag')
txn.put(b'this is the value of the qname tag', b'this is the value of the second tag')
txn.put(b'\x06suffix\x04lmdb\x05tests\x08powerdns\x03com\x00', b'this is the value of the suffix tag')
- txn.put(b'qname-plaintext.lmdb.tests.powerdns.com.', b'this is the value of the plaintext tag')
- txn.put(b'kvs-rule.lmdb.tests.powerdns.com.', b'the value does not matter')
+ txn.put(b'qname-plaintext.lmdb.tests.powerdns.com', b'this is the value of the plaintext tag')
+ txn.put(b'kvs-rule.lmdb.tests.powerdns.com', b'the value does not matter')
@classmethod
def setUpClass(cls):