Browse Source

Remove extra newline.
Also do the MX lookup and print a warning. It will core dump as is not
supported yet, but keeping this here for testing.


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/f2f200910@204 e5f2f494-b856-4b98-b285-d166d9295462

Jeremy C. Reed 15 years ago
parent
commit
1a4f7fa8b0
1 changed files with 4 additions and 3 deletions
  1. 4 3
      src/bin/host/host.cc

+ 4 - 3
src/bin/host/host.cc

@@ -110,7 +110,7 @@ host_lookup(char* name, char* type)
 // Host hsdjkfhksjhdfkj not found: 3(NXDOMAIN)
 // Host hsdjkfhksjhdfkj not found: 3(NXDOMAIN)
 // TODO: figure out the new libdns way to test if NXDOMAIN
 // TODO: figure out the new libdns way to test if NXDOMAIN
 
 
-            std::cout << "\nReceived " <<
+            std::cout << "Received " <<
                 boost::lexical_cast<string>(rmsg.getBuffer().getSize()) <<
                 boost::lexical_cast<string>(rmsg.getBuffer().getSize()) <<
                 " bytes in " << elapsed_time << " ms\n";
                 " bytes in " << elapsed_time << " ms\n";
 // TODO: " bytes from 127.0.0.1#53 in 0 ms
 // TODO: " bytes from 127.0.0.1#53 in 0 ms
@@ -138,9 +138,10 @@ main(int argc, char* argv[])
 
 
         if (!dns_type) {
         if (!dns_type) {
             host_lookup(argv[1], "A");
             host_lookup(argv[1], "A");
-// TODO: don't do next if doesn't exist
+// TODO: don't do next if A doesn't exist
             host_lookup(argv[1], "AAAA");
             host_lookup(argv[1], "AAAA");
-//          host_lookup(argv[1], "MX");
+cout << "THE FOLLOWING 'MX' WILL FAIL UNTIL SUPPORTED. KEEPING HERE FOR TESTING.\n";
+            host_lookup(argv[1], "MX");
 // No MX yet
 // No MX yet
 // terminate called after throwing an instance of 'isc::dns::DNSInvalidRRType'
 // terminate called after throwing an instance of 'isc::dns::DNSInvalidRRType'
         }
         }