<?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 resolve programmatically?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/85308/dns-resolve-programmatically</link><description>I am using: 
 nRF52840DK nRF5 SDK for Thread and Zigbee v4.1.0 CLI example with added code Border Router on Raspberry Pi 3+ 
 Using the CLI, I can get an IPv6 address for a remote website: 
 
 I need to do this in the firmware, so tried the following</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 02 Mar 2022 12:55:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/85308/dns-resolve-programmatically" /><item><title>RE: DNS resolve programmatically?</title><link>https://devzone.nordicsemi.com/thread/355820?ContentTypeID=1</link><pubDate>Wed, 02 Mar 2022 12:55:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb664592-c4d2-49af-8a82-87aea5ef763a</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
[quote user="Mary"]Now, how do I get the address of the DNS server (Border Router) programmatically?[/quote]
&lt;p&gt;Does &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/65277/how-can-get-thread-device-ip-from-border-router"&gt;this case&lt;/a&gt; have the information you look for?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DNS resolve programmatically?</title><link>https://devzone.nordicsemi.com/thread/355662?ContentTypeID=1</link><pubDate>Tue, 01 Mar 2022 22:06:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dae07c4d-a290-4028-b2e9-bf13e40ef138</guid><dc:creator>Mary</dc:creator><description>&lt;p&gt;So...I had the hard codded raspberry pi address wrong.&amp;nbsp; Fixed it, and now I get the proper response.&lt;/p&gt;
&lt;p&gt;Now, how do I get the address of the DNS server (Border Router) programmatically?&lt;/p&gt;
&lt;p&gt;Mary&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>