Commit 296add2d authored by Jeremy C. Reed's avatar Jeremy C. Reed
Browse files

Add some TODO comments as reminder to behave like host(1).


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/f2f200910@185 e5f2f494-b856-4b98-b285-d166d9295462
parent df0d7260
......@@ -103,6 +103,10 @@ host_lookup(char* name, char* type)
(after_time.tv_sec - before_time.tv_sec)
+ ((after_time.tv_usec - before_time.tv_usec))/1000;
// TODO: if NXDOMAIN, host(1) doesn't show HEADER
// Host hsdjkfhksjhdfkj not found: 3(NXDOMAIN)
// TODO: figure out the new libdns way to test if NXDOMAIN
std::cout << "\nReceived " <<
boost::lexical_cast<string>(rmsg.getBuffer().getSize()) <<
" bytes in " << elapsed_time << " ms\n";
......@@ -131,6 +135,7 @@ main(int argc, char* argv[])
if (!dns_type) {
host_lookup(argv[1], "A");
// TODO: don't do next if doesn't exist
host_lookup(argv[1], "AAAA");
// host_lookup(argv[1], "MX");
// No MX yet
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment