...
Anchor
Files
...
...
dns-c.h/dns-c.c
...
Prototype
...
class | Code_Listing |
---|
...
rowspan | 5 |
---|
...
Arguments
...
...
host_name
Pointer to the string representation of a host name.
...
Returned Values
...
IP address of the host, if no errors;
...
NET_IP_ADDR_NONE
, otherwise.
...
Required Configuration
...
Notes / Warnings
...
This function is a simplified version of BSD socket API’s gethostbyname()
. Given a domain name, this function will first query a locally maintained cache and, if no match is found, it will issue a DNS query to retrieve the host’s IP address. Anchor
Example Usage
...
class | Code_Listing |
---|
...
rowspan | 8 |
---|
...