Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Anchor10439521043952 DNSc_GetHostByName() Anchor10444111044411Converts the string representation of a host name to its corresponding IP address using DNS service. Anchor10444511044451

Files

...

...

dns-c.h/dns-c.c

...

Prototype

...

classCode_Listing

...

rowspan5

...

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

...

1045262None. Anchor10452631045263

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. Anchor10459621045962

Example Usage

...

classCode_Listing

...

rowspan8

...