nrfxlib API 2.8.99
|
int nrf_setdnsaddr | ( | int | family, |
const void * | in_addr, | ||
nrf_socklen_t | in_size ) |
#include <nrf_modem/include/nrf_socket.h>
Set a secondary DNS address.
The secondary DNS address is only used in case the primary DNS address is unreachable, or if no DNS address is provided by the operator. The secondary DNS address does not override the primary DNS address.
family | Address family. |
in_addr | An IPv4 or IPv6 address encoded in a nrf_in_addr or nrf_in6_addr structure, respectively. |
in_size | Size of the structure pointed to by in_addr. |
0 | On success |
-1 | On error, and set errno to indicate the reason. |
The function may return -1 and set the following errno: