Custom DNS Set on SDK 3.1

Hi, 

We have a client using one of our products, and their local NB-IoT network was giving us some issues, I travelled over to try and work out what was going on, and it was to do with the network not have DNS server, so it couldn't resolve server IP addresses. It is now working fine using the suggested answer in this thread.

 nRF9160 Modem Firmware v1.0.0: Setting custom DNS server 

However, our product is still using SDK1.6.1, and modem FW 1.3.1, I am currently in the middle of trying to port across our firmware to the latest SDK. The fix in the above was to use the function
 

struct nrf_in_addr dns;
dns.s_addr = 134744072; // Google DNS, 8.8.8.8
const int err = nrf_setdnsaddr(2, &dns);

But I cant find this function, or an equivalent in SDK 3.1. Can you point me in the right direction?

Thanks, 

Damien 

Parents Reply
  • Hi Michal, 

    Well I can try and work out why it is failing there, and if I do I will update this thread. However, I am not sure how I would test that it works. The only network I know of that has the DNS issue is a 1 hour plane journey away, so ideally I need a way to ensure it works before pushing FW updates to units on that network. Do you know of a way I can test this? 

    Thanks, 

    Damien

Children
Related