From 296add2d15b3a64127df763b6378a2bc6b7fc223 Mon Sep 17 00:00:00 2001 From: "Jeremy C. Reed" Date: Thu, 29 Oct 2009 22:07:33 +0000 Subject: [PATCH] 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 --- src/bin/host/host.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/bin/host/host.cc b/src/bin/host/host.cc index a3962196e8..1eb7447a4b 100644 --- a/src/bin/host/host.cc +++ b/src/bin/host/host.cc @@ -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(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