| 154 | | try { |
| 155 | | shared_ptr<DNSRecordContent> drc(DNSRecordContent::mastermake(rr.qtype.getCode(), 1, rr.content)); |
| 156 | | string tmp=drc->serialize(rr.qname); |
| 157 | | } |
| 158 | | catch(std::exception& e) |
| 159 | | { |
| 160 | | cerr<<"Following record had a problem: "<<rr.qname<<" IN " <<rr.qtype.getName()<< " " << rr.content<<endl; |
| 161 | | cerr<<"Error was: "<<e.what()<<endl; |
| 162 | | numerrors++; |
| 163 | | } |
| 164 | | numrecords++; |
| 165 | | } |
| 166 | | cerr<<"Checked "<<numrecords<<" records, "<<numerrors<<" errors"<<endl; |
| 167 | | |
| 168 | | |
| | 154 | try { |
| | 155 | shared_ptr<DNSRecordContent> drc(DNSRecordContent::mastermake(rr.qtype.getCode(), 1, rr.content)); |
| | 156 | string tmp=drc->serialize(rr.qname); |
| | 157 | } |
| | 158 | catch(std::exception& e) |
| | 159 | { |
| | 160 | cerr<<"Following record had a problem: "<<rr.qname<<" IN " <<rr.qtype.getName()<< " " << rr.content<<endl; |
| | 161 | cerr<<"Error was: "<<e.what()<<endl; |
| | 162 | numerrors++; |
| | 163 | } |
| | 164 | numrecords++; |
| | 165 | } |
| | 166 | cerr<<"Checked "<<numrecords<<" records, "<<numerrors<<" errors"<<endl; |