DNSc_GetServerByAddr

Get DNS server in an address object that is configured to be use by default.

Files

dns-c.h/dns-c.c

Prototype

void  DNSc_GetServerByAddr (DNSc_ADDR_OBJ  *p_addr,
                            DNSc_ERR       *p_err);


Arguments

p_addr
Pointer to structure that will receive the IP address of the DNS server.
p_err
Pointer to variable that will receive the return error code from this function.


Returned Values

None.

Required Configuration

None.

Notes / Warnings

None.

Example Usage

DNSc_ADDR_OBJ  addr;
DNSc_ERR       err;
           
DNSc_GetServerByAddr(&addr, &err);