DNSc_GetServerByStr

Configure DNS server that must be used by default using a string.

Files

dns-c.h/dns-c.c

Prototype

void  DNSc_GetServerByStr (CPU_CHAR    *p_str,
                           CPU_INT08U   str_len_max,
                           DNSc_ERR    *p_err);
p_str
Pointer to structure that will receive the IP address of the DNS server.
str_len_max
Maximum string length.
p_err
Pointer to variable that will receive the return error code from this function.

Arguments


Returned Values

None.

Required Configuration

None.

Notes / Warnings

None.

Example Usage

CPU_CHAR  addr[NET_ASCII_LEN_MAX_ADDR_IPv6];
DNSc_ERR  err;
           
DNSc_CfgServerByStr(addr, NET_ASCII_LEN_MAX_ADDR_IPv6, &err);