Commit 1a4f7fa8 authored by Jeremy C. Reed's avatar Jeremy C. Reed
Browse files

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
parent 75eb1a48
......@@ -110,7 +110,7 @@ host_lookup(char* name, char* type)
// Host hsdjkfhksjhdfkj not found: 3(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()) <<
" bytes in " << elapsed_time << " ms\n";
// TODO: " bytes from 127.0.0.1#53 in 0 ms
......@@ -138,9 +138,10 @@ main(int argc, char* argv[])
if (!dns_type) {
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], "MX");
cout << "THE FOLLOWING 'MX' WILL FAIL UNTIL SUPPORTED. KEEPING HERE FOR TESTING.\n";
host_lookup(argv[1], "MX");
// No MX yet
// terminate called after throwing an instance of 'isc::dns::DNSInvalidRRType'
}
......
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