<?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>DNS recv internal error, query still returns correctly - want to remove possibly incorrect error</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/115027/dns-recv-internal-error-query-still-returns-correctly---want-to-remove-possibly-incorrect-error</link><description>During adding SNTP (from the simple_SNTP sample in Zephyr) and later seen in other request system types, I&amp;#39;ve been getting a DNS recv error with error codes -4 and -103. This in nRF Connect SDK/Toolchain 2.7.0 on nrf7002dk rev1.0.2. 
 Logs example as</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 26 Sep 2024 17:56:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/115027/dns-recv-internal-error-query-still-returns-correctly---want-to-remove-possibly-incorrect-error" /><item><title>RE: DNS recv internal error, query still returns correctly - want to remove possibly incorrect error</title><link>https://devzone.nordicsemi.com/thread/504050?ContentTypeID=1</link><pubDate>Thu, 26 Sep 2024 17:56:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:948a1479-abe3-49d1-98f0-a6392102e0f8</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;According to &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v3.6.99-ncs2/include/zephyr/net/dns_resolve.h"&gt;zephyr/include/zephyr/net/dns_resolve.h&lt;/a&gt;:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v3.6.99-ncs2/include/zephyr/net/dns_resolve.h#L114"&gt;error -4 is&amp;nbsp;DNS_EAI_FAIL&lt;/a&gt; returned if the server cannot resolve the name.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v3.6.99-ncs2/include/zephyr/net/dns_resolve.h#L138"&gt;error -103 means DNS_EAI_ALLDONE&lt;/a&gt; is used to mark the end of the resolving, info is set to NULL in this case.&lt;/p&gt;
&lt;p&gt;You can debug with&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v3.6.99-ncs2/subsys/net/lib/dns/resolve.c"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/v3.6.99-ncs2/subsys/net/lib/dns/resolve.c&lt;/a&gt;&amp;nbsp;to figure out why&amp;nbsp;&lt;span&gt;the server cannot resolve the name.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;br /&gt;Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>