#include #include #include #include #include "sclasses.hh" #include #include #include "record-types.hh" /*! @file @brief Tiny 'dig'-like utility to create DNS queries & print responses */ using namespace std; int main(int argc, char** argv) try { if(argc != 4) { cerr<<"Syntax: tdig name type ip[:port]"< rr; while(dmr.getRR(rrsection, dn, dt, ttl, rr)) { cout << dn<< " IN " << dt << " " << ttl << " " <toString()<