This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nrf91 modem library custom DNS and nrf_setdnsaddr() support status

Hi,

We are developing a device that should work in multiple mobile networks, and some of these are known to provide no DNS server. As using a fixed IP address for our cloud endpoint isn't an attractive option, we have to provide a custom DNS server address. The documentation for NCS 1.5.1/ nrf_modem 1.0.1 library states that "The DNS address management protocol is not yet implemented." nrf_setdnsaddr() is listed, but not documented. Acccording to this ticket it does work, but what is its support status? Also, is it possible to list multiple/fallback DNS servers this way?

Alternatively, is it possible to send DNS requests from application via UDP sockets (i. e. it wouldn't be blocked by the modem)? As far as I'm able to tell from the docs, Zephyr DNS resolver works via net_context API, so it's unusable with nrf91 LTE connection, as modem library works via NET_SOCKETS_OFFLOAD, bypassing net_context. Hence we would have to include an external resolver module.

Related