Browse Source

Non-verbose output partially working now.
(TODO: IPv6 address and mail handler...)


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

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

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

@@ -98,8 +98,9 @@ host_lookup(char* name, std::string type)
                       for (ait = (*it)->getRdatalist().begin();
                            ait != (*it)->getRdatalist().end();
                            ++ait) {
-                          // this should be in_addr of the address
-                          static_cast<const Rdata::IN::A&>(**ait).getAddress();
+                          // instead of using my name, maybe use returned label?
+                          cout << name << " has address " <<
+                              inet_ntoa(static_cast<const Rdata::IN::A&>(**ait).getAddress()) << "\n";
                       }
                   }
             } else {