Function nrfxlib_sys::nrf_setdnsaddr[][src]

pub unsafe extern "C" fn nrf_setdnsaddr(
    family: c_int,
    in_addr: *const c_void
) -> c_int
Expand description

Set a secondary DNS address.

s The secondary DNS address is used automatically 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. Pass * NULL - to unset the secondary DNS address.

Returns int Zero on success, or an error from @file nrf_modem/include/nrf_errno.h otherwise.