mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-30 05:27:55 +00:00
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
This commit is contained in:
parent
df0d726038
commit
296add2d15
@ -103,6 +103,10 @@ host_lookup(char* name, char* type)
|
|||||||
(after_time.tv_sec - before_time.tv_sec)
|
(after_time.tv_sec - before_time.tv_sec)
|
||||||
+ ((after_time.tv_usec - before_time.tv_usec))/1000;
|
+ ((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 " <<
|
std::cout << "\nReceived " <<
|
||||||
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";
|
||||||
@ -131,6 +135,7 @@ 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
|
||||||
host_lookup(argv[1], "AAAA");
|
host_lookup(argv[1], "AAAA");
|
||||||
// host_lookup(argv[1], "MX");
|
// host_lookup(argv[1], "MX");
|
||||||
// No MX yet
|
// No MX yet
|
||||||
|
Loading…
x
Reference in New Issue
Block a user