Class for resolving domain names to IP addresses using DNS queries.
Definition ksDomainQuery.h:34
ksDomainQuery()
Default constructor. Uses KSF_DOMAIN_QUERY_DNS_SERVER as the DNS server.
Definition ksDomainQuery.cpp:31
void receiveResponse()
Receives DNS response from the DNS server.
Definition ksDomainQuery.cpp:117
void process()
Handles resolver tasks, such as sending queries and receiving responses.
Definition ksDomainQuery.cpp:183
void setDomain(std::string domain)
Sets the domain to resolve IP address for.
Definition ksDomainQuery.cpp:49
bool getResolvedIP(IPAddress &ip) const
Retrieves the resolved IP address for the domain.
Definition ksDomainQuery.cpp:55
void invalidate()
Invalidates the resolved IP address and the last query send time. It will cause a new query to be sen...
Definition ksDomainQuery.cpp:43
void sendQuery()
Sends DNS query to the DNS server.
Definition ksDomainQuery.cpp:69