libnick 2024.12.0
A cross-platform base for native Nickvision applications.
Loading...
Searching...
No Matches
Nickvision::Network::DNS Namespace Reference

Functions

std::vector< IPv4Addressa (const std::string &hostname)
 Resolves a hostname to IPv4 addresses.
 
std::vector< std::string > txt (const std::string &hostname)
 Gets text records for a hostname.
 

Function Documentation

◆ a()

std::vector< IPv4Address > Nickvision::Network::DNS::a ( const std::string & hostname)

Resolves a hostname to IPv4 addresses.

Parameters
hostnameThe hostname to resolve
Returns
A list of IPv4 addresses that the hostname resolves to

◆ txt()

std::vector< std::string > Nickvision::Network::DNS::txt ( const std::string & hostname)

Gets text records for a hostname.

Parameters
hostnameThe hostname to resolve
Returns
A list of text records for the hostname