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

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
parent 2dedee9f
......@@ -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 {
......
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