static int maxNSEC3Iterations=::arg().asNum("max-nsec3-iterations");
if(ns3p) {
- std::shared_ptr<NSEC3PARAMRecordContent> tmp=std::dynamic_pointer_cast<NSEC3PARAMRecordContent>(DNSRecordContent::mastermake(QType::NSEC3PARAM, 1, value));
+ auto tmp=std::dynamic_pointer_cast<NSEC3PARAMRecordContent>(DNSRecordContent::mastermake(QType::NSEC3PARAM, 1, value));
*ns3p = *tmp;
if (ns3p->d_iterations > maxNSEC3Iterations) {
dr.d_type = rr.qtype.getCode();
dr.d_clen = val.size()-pr.d_pos;
- std::shared_ptr<DNSRecordContent> drc = DNSRecordContent::mastermake(dr, pr);
+ auto drc = DNSRecordContent::mastermake(dr, pr);
rr.content = drc->getZoneRepresentation();
DLOG(cerr<<"CONTENT: "<<rr.content<<endl);
}
for(char c='a'; c<= 'm';++c) {
pw.startRecord(DNSName("com"), QType::NS, 3600, 1, DNSResourceRecord::AUTHORITY);
gtld[0]=c;
- std::unique_ptr<DNSRecordContent> drc = DNSRecordContent::makeunique(QType::NS, 1, gtld);
+ auto drc = DNSRecordContent::makeunique(QType::NS, 1, gtld);
drc->toPacket(pw);
}
for(char c='a'; c<= 'k';++c) {
gtld[0]=c;
pw.startRecord(DNSName(gtld), QType::A, 3600, 1, DNSResourceRecord::ADDITIONAL);
- std::unique_ptr<DNSRecordContent> drc = DNSRecordContent::makeunique(QType::A, 1, "1.2.3.4");
+ auto drc = DNSRecordContent::makeunique(QType::A, 1, "1.2.3.4");
drc->toPacket(pw);
}
/** Helper to build a record content as needed. */
static inline string makeRecordContent(const QType& qtype, const string& content, bool noDot) {
// noDot: for backend storage, pass true. for API users, pass false.
- std::unique_ptr<DNSRecordContent> drc(DNSRecordContent::makeunique(qtype.getCode(), QClass::IN, content));
+ auto drc = DNSRecordContent::makeunique(qtype.getCode(), QClass::IN, content);
return drc->getZoneRepresentation(noDot);
}