getaddrinfo consistently fails when connected with Proximus NB-IoT with proximus sim card, or Telenet NB-IoT with Telenet sim card.

Hi,

I have used an NRF9160 in Belgium with the iBasis sim card, connecting via LTE-M and NB-IoT with operators Orange and Proximus. HTTP requests work fine.

However, when using a dedicated Proximus sim card (which has been used for another project in another MCU+modem [pycom]), getaddrinfo fails consistently in NB-IoT mode, returning random error values. Retries don't help. The strange thing is that the modem returns a "CSCON: 0" AT notification! Proximus requires a specific APN to be configured with this sim card (m2minternet.proximus.be) which is not required when using the iBasis sim card, that is the only difference in the code compared to using iBasis sim card.

Something similar is observed with a dedicated Telenet sim card on the NB-IoT Telenet network: the getaddrinfo here returns -11 (DNS_EAI_SYSTEM). I am just trying to resolve google.com. When using a direct IP address like 142.250.179.174, the getaddrinfo works fine and a HTTP HEAD request is returned. So for telenet, the connection itself works fine but the DNS does not seem to be working. Note that here we also use a dedicated APN (iot.telenet.be).

What could be the root cause of these issues?

Related