<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>NRF9160 getaddrinfo() return DNS_EAI_SYSTEM and errno 0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/77231/nrf9160-getaddrinfo-return-dns_eai_system-and-errno-0</link><description>Hi, 
 One of our unit started to systematically report DNS_EAI_SYSTEM (-11) when calling getaddrinfo(). In a attempt to get more info about the error, I added errno to the logs but value is 0. 
 I didn&amp;#39;t found what is the meaning of this error. 
 What</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 09 Jul 2021 15:44:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/77231/nrf9160-getaddrinfo-return-dns_eai_system-and-errno-0" /><item><title>RE: NRF9160 getaddrinfo() return DNS_EAI_SYSTEM and errno 0</title><link>https://devzone.nordicsemi.com/thread/319433?ContentTypeID=1</link><pubDate>Fri, 09 Jul 2021 15:44:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b35476a-5948-4aba-a76f-3191dee2a06b</guid><dc:creator>loumay</dc:creator><description>&lt;p&gt;Hi H&amp;aring;kon,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for the pointer.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Louis&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 getaddrinfo() return DNS_EAI_SYSTEM and errno 0</title><link>https://devzone.nordicsemi.com/thread/319409?ContentTypeID=1</link><pubDate>Fri, 09 Jul 2021 14:05:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e59aa66f-b643-40ea-bdbd-c577d85baa83</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi Louis,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can try x amount of times, and wait in between each retry, similar to this:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/master/samples/nrf9160/gps/src/supl_support.c#L43-L60"&gt;https://github.com/nrfconnect/sdk-nrf/blob/master/samples/nrf9160/gps/src/supl_support.c#L43-L60&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 getaddrinfo() return DNS_EAI_SYSTEM and errno 0</title><link>https://devzone.nordicsemi.com/thread/319405?ContentTypeID=1</link><pubDate>Fri, 09 Jul 2021 13:46:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e4278a9-6498-4900-9d36-90ed9bdc109d</guid><dc:creator>loumay</dc:creator><description>&lt;p&gt;I will have a closer look to the CEREG notifications then.&lt;/p&gt;
&lt;p&gt;Any recommendations on how to handle saturated/slow network?&lt;/p&gt;
&lt;p&gt;I can easily increase timeout values in our application layer, but I didn&amp;#39;t found anything to increase the timeout for DNS request on getaddrinfo().&lt;/p&gt;
&lt;p&gt;Would a retry until getaddrinfo() success be the best approach here?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Louis&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 getaddrinfo() return DNS_EAI_SYSTEM and errno 0</title><link>https://devzone.nordicsemi.com/thread/319300?ContentTypeID=1</link><pubDate>Fri, 09 Jul 2021 07:54:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fcbdd75b-aa33-4ba4-a969-a70ee1f92410</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;I&amp;#39;m glad to hear that you found the source of the issue.&lt;/p&gt;
&lt;p&gt;If you listen to CEREG notifications (or other similar AT command notifications), you should be able to find if there&amp;#39;s any network related disconnections or similar.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 getaddrinfo() return DNS_EAI_SYSTEM and errno 0</title><link>https://devzone.nordicsemi.com/thread/319233?ContentTypeID=1</link><pubDate>Thu, 08 Jul 2021 15:35:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:95e683fe-0d7a-4f6b-91a2-d1066468610a</guid><dc:creator>loumay</dc:creator><description>&lt;p&gt;Hi H&amp;aring;kon,&lt;/p&gt;
&lt;p&gt;It looks like the issue was too many units running at the same location and connecting to the same tower. Local network became too slow and DNS request were failing consistently.&lt;/p&gt;
&lt;p&gt;Thanks again for you quick reply and inputs.&lt;/p&gt;
&lt;p&gt;Louis&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 getaddrinfo() return DNS_EAI_SYSTEM and errno 0</title><link>https://devzone.nordicsemi.com/thread/319179?ContentTypeID=1</link><pubDate>Thu, 08 Jul 2021 12:44:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58ad2161-fbae-4ad1-a24d-f0abb14cf6a0</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Its the default return code for getaddrinfo:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v1.6.0/lib/nrf_modem_lib/nrf91_sockets.c#L502"&gt;https://github.com/nrfconnect/sdk-nrf/blob/v1.6.0/lib/nrf_modem_lib/nrf91_sockets.c#L502&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;the original return code from nrf_getaddrinfo() is translated to the above return.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I would recommend that you check the unit using at_host and run it in lte link monitor (which enables error messages etc.) to see if it returns anything out of the ordinary after AT+CFUN=1 has been issued.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>