<?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 DNS cache &amp;amp; TTL</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/109326/nrf9160-dns-cache-ttl</link><description>We are using the nRF9160 with a cellular service provider that has quite a strict firewall policy. There are rejected connections and we suspect a problem with cached DNS lookups in the nRF91. 
 To be more specific, the firewall at the provider does white</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 02 Oct 2025 09:56:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/109326/nrf9160-dns-cache-ttl" /><item><title>RE: nRF9160 DNS cache &amp; TTL</title><link>https://devzone.nordicsemi.com/thread/550447?ContentTypeID=1</link><pubDate>Thu, 02 Oct 2025 09:56:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a03fd5a9-5f58-45ef-ae56-53ef5fad877d</guid><dc:creator>Sebastiaan Merckx</dc:creator><description>&lt;p&gt;Okay, good to know, thanks.&lt;/p&gt;
&lt;p&gt;What we could also see in pcap captures is that the NRF91 performs an IPV6 DNS request and gets a response with only CNAME record, and it does not perform an IPV4 DNS request. This might be an indication that the modem implementation mixes IPV6 and IPV4 responses, which is wrong.&lt;/p&gt;
&lt;p&gt;But we&amp;#39;ve just done some IPV4-only tests where the same (or similar?) issue occurs - we still need to look at the captures. I haven&amp;#39;t activated modem traces yet.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 DNS cache &amp; TTL</title><link>https://devzone.nordicsemi.com/thread/550439?ContentTypeID=1</link><pubDate>Thu, 02 Oct 2025 08:49:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a17eaa8a-96d6-4b97-a15e-0a17239ac2eb</guid><dc:creator>Stephan Walter</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Sebastiaan, our problem was with Vodafone as well. Unfortunately I don&amp;#39;t know how the problem ultimately got resolved, if at all. A workaround would be to add the IP addresses to the whitelist instead of the FQDN. Of course that defeats the advantages of a domain name.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 DNS cache &amp; TTL</title><link>https://devzone.nordicsemi.com/thread/550435?ContentTypeID=1</link><pubDate>Thu, 02 Oct 2025 08:28:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:902a9742-01b9-4779-a3da-6eff1f901e81</guid><dc:creator>Sebastiaan Merckx</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/sw"&gt;Stephan Walter&lt;/a&gt;&amp;nbsp;,&lt;/p&gt;
&lt;p&gt;Which provider are you talking about? I&amp;#39;m facing similar issues with Vodafone.&lt;/p&gt;
&lt;p&gt;Did you manage to solve this issue?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Sebastiaan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 DNS cache &amp; TTL</title><link>https://devzone.nordicsemi.com/thread/479103?ContentTypeID=1</link><pubDate>Wed, 17 Apr 2024 06:13:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94aa03b7-64d7-47b3-a5fc-6fe661e5305c</guid><dc:creator>Stephan Walter</dc:creator><description>&lt;p&gt;Hi H&amp;aring;kon,&lt;/p&gt;
&lt;p&gt;Thanks for your help. We have run a test with tracing enabled (NRF_MODEM_LIB_TRACE_LEVEL_IP_ONLY), and it looks like the nRF91 indeed handles the TTL correctly. Still it would be nice to have some way to influence the DNS cache on the nRF91.&lt;/p&gt;
&lt;p&gt;We suspect that our provider hasn&amp;#39;t implemented the TTL in the firewall correctly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 DNS cache &amp; TTL</title><link>https://devzone.nordicsemi.com/thread/474624?ContentTypeID=1</link><pubDate>Tue, 19 Mar 2024 13:10:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99bbc499-7b5d-4504-8fe4-877c2f98f0bc</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;I got confirmation from R&amp;amp;D.&lt;/p&gt;
[quote user=""]Is it correct that the nRF91 caches DNS responses for longer than the TTL permits?[/quote]
&lt;p&gt;We have a internal test on this, and this is not failing, meaning that we observe&amp;nbsp;that the nRF9160 modem fw is not caching longer than TTL permits.&lt;/p&gt;
[quote user=""]Is there a way to change this behavior and force it to respect the TTL?[/quote]
&lt;p&gt;Could you please share a modem trace showing this behavior?&lt;/p&gt;
[quote user=""]Is there a way to disable, clear, or dump the DNS cache?[/quote]
&lt;p&gt;Unfortunately, no. There is no way to clear the DNS cache.&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 DNS cache &amp; TTL</title><link>https://devzone.nordicsemi.com/thread/474398?ContentTypeID=1</link><pubDate>Mon, 18 Mar 2024 15:01:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ca9b968-73e8-46af-b17d-243e54ade846</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;I can confirm that the nRF9160 does cache DNS lookups, but I do not have details related to the below questions (yet):&lt;/p&gt;
[quote user=""]&lt;p&gt;Is it correct that the nRF91 caches DNS responses for longer than the TTL permits?&lt;/p&gt;
&lt;p&gt;Is there a way to change this behavior and force it to respect the TTL?&lt;/p&gt;
&lt;p&gt;Is there a way to disable, clear, or dump the DNS cache?&lt;/p&gt;[/quote]
&lt;p&gt;I&amp;#39;ll ask R&amp;amp;D about these specific questions and get back to you within a few business days.&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>