case QType::MX:
case QType::SRV:
case QType::CNAME:
+ case QType::DNAME:
case QType::NS:
if(!stripDomainSuffix(&content, name))
content=stripDot(content)+".";
if (content.size() >= 2 && *(content.rbegin()+1) == ' ')
return;
case QType::CNAME:
+ case QType::DNAME:
case QType::NS:
if(!content.empty())
boost::erase_tail(content, 1);
case QType::SRV:
case QType::MX:
case QType::CNAME:
+ case QType::DNAME:
case QType::NS:
if (*(content.rbegin()) != '.') {
ret<<content;
// numerrors++;
// }
- if ( (rr.qtype.getCode() == QType::NS || rr.qtype.getCode() == QType::SRV || rr.qtype.getCode() == QType::MX || rr.qtype.getCode() == QType::CNAME) &&
+ if ( (rr.qtype.getCode() == QType::NS || rr.qtype.getCode() == QType::SRV || rr.qtype.getCode() == QType::MX || rr.qtype.getCode() == QType::CNAME || rr.qtype.getCode() == QType::DNAME) &&
rr.content[rr.content.size()-1] == '.') {
cout<<"[Warning] The record "<<rr.qname.toString()<<" with type "<<rr.qtype.getName()<<" has a trailing dot in the content ("<<rr.content<<"). Your backend might not work well with this."<<endl;
numwarnings++;
if (rr.content.size() >= 2 && *(rr.content.rbegin()+1) == ' ')
break;
case QType::CNAME:
+ case QType::DNAME:
case QType::NS:
if(!rr.content.empty())
boost::erase_tail(rr.content, 1);