toCheck = DNSName(rr.content);
}
- if (!toCheck.empty() && !toCheck.isHostname()) {
- cout<<"[Warning] "<<rr.qtype.getName()<<" record in zone '"<<zone<<"' has non-hostname content '"<<toCheck<<"'."<<endl;
+ if (toCheck.empty())
+ cout<<"[Warning] "<<rr.qtype.getName()<<" record in zone '"<<zone<<"': unable to extract hostname from content."<<endl;
+ else if(!toCheck.isHostname()) {
+ cout<<"[Warning] "<<rr.qtype.getName()<<" record in zone '"<<zone<<"' has non-hostname content '"<<toCheck.toString()<<"'."<<endl;
numwarnings++;
}
}