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

BIND 10 source code commits bind10-changes at lists.isc.org
Fri Oct 30 19:40:27 UTC 2009


Author: jreed
Date: Fri Oct 30 19:40:27 2009
New Revision: 251

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

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 Fri Oct 30 19:40:27 2009
@@ -98,8 +98,9 @@
                       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 {




More information about the bind10-changes mailing list