if(!getAuth(p, &sd, target, &zoneId))
return false;
- B.lookup("MBOXFW",string("%@")+target,p, zoneId);
+ B.lookup(QType(QType::MBOXFW),string("%@")+target,p, zoneId);
while(B.get(rr))
wedoforward=true;
bool found=false;
- B.lookup("URL",target,p); // search for a URL before we search for an A
+ B.lookup(QType(QType::URL),target,p); // search for a URL before we search for an A
while(B.get(rr)) {
if(!found)
// now try CURL
- B.lookup("CURL",target,p); // search for a URL before we search for an A
+ B.lookup(QType(QType::CURL),target,p); // search for a URL before we search for an A
while(B.get(rr)) {
if(!found)
public:
QType(); //!< Naked constructor
explicit QType(uint16_t); //!< convert from an integer to a QType
- QType(const char *p); //!< convert from a char* to a QType
QType(const QType& orig) : code(orig.code)
{
}