#include #include #include #include #include "sclasses.hh" #include "dns.hh" #include #include #include "record-types.hh" using namespace std; DNSName fromString(const std::string& str) { DNSName ret; string part; for(const auto& c: str) { if(c=='.') { ret.push_back(part); part.clear(); } else part.append(1, c); } if(!part.empty()) ret.push_back(part); return ret; } int main(int argc, char** argv) try { if(argc != 4) { cerr<<"Syntax: tdig name type ip[:port]"< rr; cout<<"Received response with RCode "<<(RCode)dmr.dh.rcode<toString()<