Shows how to use xtd::net::dns class.
#include <xtd/net/dns>
#include <xtd/console>
auto main() -> int {
for (auto address : host_entry.address_list())
for (auto alias : host_entry.aliases())
}
static void write_line()
Writes the current line terminator to the standard output stream using the specified format informati...
static xtd::net::ip_host_entry get_host_entry(const ip_address &address)
Resolves an IP address to an xtd::net::ip_host_entry instance.
The xtd::net namespace provides a simple programming interface for many of the protocols used on netw...
Definition cookie_exception.hpp:10
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8