[svn] commit: r185 - /branches/f2f200910/src/bin/host/host.cc

BIND 10 source code commits bind10-changes at lists.isc.org
Thu Oct 29 22:07:34 UTC 2009


Author: jreed
Date: Thu Oct 29 22:07:33 2009
New Revision: 185

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

Modified:
    branches/f2f200910/src/bin/host/host.cc

Modified: branches/f2f200910/src/bin/host/host.cc
==============================================================================
--- branches/f2f200910/src/bin/host/host.cc (original)
+++ branches/f2f200910/src/bin/host/host.cc Thu Oct 29 22:07:33 2009
@@ -103,6 +103,10 @@
                 (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 @@
 
         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




More information about the bind10-changes mailing list