QType qtype; //!< qtype of this record, ie A, CNAME, MX etc
uint16_t qclass; //!< class of this record
string qname; //!< the name of this record, for example: www.powerdns.com
+ string wildcardname;
string content; //!< what this record points to. Example: 10.1.2.3
uint16_t priority; //!< For qtype's that support a priority or preference. Currently only MX
uint32_t ttl; //!< Time To Live of this record
enum Place {QUESTION=0, ANSWER=1, AUTHORITY=2, ADDITIONAL=3}; //!< Type describing the positioning of a DNSResourceRecord within, say, a DNSPacket
Place d_place; //!< This specifies where a record goes within the packet
+ bool auth;
+
bool operator<(const DNSResourceRecord &b) const
{
if(qname < b.qname)
this->lookup(QType(QType::SOA),domain,p);
DNSResourceRecord rr;
+ rr.auth = true;
int hits=0;
#include <sys/types.h>
#include "ahuexception.hh"
#include <set>
+#include <iostream>
#ifndef WIN32
# include <sys/socket.h>
//! lookup() initiates a lookup. A lookup without results should not throw!
virtual void lookup(const QType &qtype, const string &qdomain, DNSPacket *pkt_p=0, int zoneId=-1)=0;
virtual bool get(DNSResourceRecord &)=0; //!< retrieves one DNSResource record, returns false if no more were available
+
+ virtual bool getBeforeAndAfterNames(uint32_t id, const std::string qname, std::string& before, std::string& after)
+ {
+ std::cerr<<"Default beforeAndAfter called!"<<std::endl;
+ return false;
+ }
+
//! Initiates a list of the specified domain
/** Once initiated, DNSResourceRecord objects can be retrieved using get(). Should return false
if the backend does not consider itself responsible for the id passed.