Shows how to use xtd::net::dns class.
#include <xtd/net/dns>
#include <xtd/console>
auto main() -> int {
for (auto address : addresses)
}
static void write_line()
Writes the current line terminator to the standard output stream using the specified format informati...
static xtd::array< xtd::net::ip_address > get_host_addresses(const xtd::string &host_name_or_address)
Returns the Internet Protocol (IP) addresses for the specified host.
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