explicit LMDBBackend(const string& suffix = "");
~LMDBBackend();
- unsigned int getCapabilities() override { return CAP_DNSSEC | CAP_DIRECT | CAP_LIST; }
+ unsigned int getCapabilities() override { return CAP_DNSSEC | CAP_DIRECT | CAP_LIST | CAP_CREATE; }
bool list(const DNSName& target, int id, bool include_disabled) override;
bool getDomainInfo(const DNSName& domain, DomainInfo& di, bool getserial = true) override;
unsigned int GSQLBackend::getCapabilities()
{
if (d_dnssecQueries) {
- return CAP_DNSSEC | CAP_COMMENTS | CAP_DIRECT | CAP_LIST;
+ return CAP_DNSSEC | CAP_COMMENTS | CAP_DIRECT | CAP_LIST | CAP_CREATE;
}
- return CAP_COMMENTS | CAP_DIRECT | CAP_LIST;
+ return CAP_COMMENTS | CAP_DIRECT | CAP_LIST | CAP_CREATE;
}
bool GSQLBackend::getBeforeAndAfterNamesAbsolute(uint32_t id, const DNSName& qname, DNSName& unhashed, DNSName& before, DNSName& after)
CAP_COMMENTS = 1 << 1, // Backend supports comments
CAP_DIRECT = 1 << 2, // Backend supports direct commands
CAP_LIST = 1 << 3, // Backend supports record enumeration
+ CAP_CREATE = 1 << 4, // Backend supports domain creation
};
virtual unsigned int getCapabilities() = 0;