Resolve a domain name to a IPv4 address.
The DnsResolver class converts a domain name to an IP Address (A record)
Create an empty dns resolve request
Create a DNS resolve request, and fetch the IP address right away.
Note The request runs asynchonously, make sure to install the completion callback right after construction.
Get the resolved IP address.
Get the resolved IP address. Note This is first valid after the request is completed.
- A text representation of the resolved IP address, or an empty string.