<?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>Name resolving of a subdomain</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/91475/name-resolving-of-a-subdomain</link><description>Hi, The getaddrinfo() function returns the same IP address for www2.domain.com and domain.com, namely that of domain.com while they are running on different servers and have different IP addresses. How can I get the IP address of my subdomain www2.domain</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 01 Sep 2022 12:31:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/91475/name-resolving-of-a-subdomain" /><item><title>RE: Name resolving of a subdomain</title><link>https://devzone.nordicsemi.com/thread/384338?ContentTypeID=1</link><pubDate>Thu, 01 Sep 2022 12:31:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67648070-d280-489d-91a3-d468175bc1f9</guid><dc:creator>Bert Baselmans</dc:creator><description>&lt;p&gt;Hi Charlie&lt;/p&gt;
&lt;p&gt;My problem has indeed been solved. I had overlooked that both domain name and subdomain name were preceded by HTTP:/. This apparently results in the IP address of the main domain being returned during resolving in both cases.&amp;nbsp;The function getaddrinfo() did not return any error.&lt;/p&gt;
&lt;p&gt;Thank you for your help&lt;br /&gt;Bert&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Name resolving of a subdomain</title><link>https://devzone.nordicsemi.com/thread/384255?ContentTypeID=1</link><pubDate>Thu, 01 Sep 2022 07:31:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1ccb4cf-085c-46c1-890d-4ef3a1ec4edd</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Bert,&lt;/p&gt;
[quote user="Bert Baselmans"]Unfortunately I am unable to generate the executable serial_LTE_modem due to configuration errors related to HTTP_CLIENT and MQTT. So I am unable to run the test using serial_LTE_modem. [/quote]
&lt;p&gt;Please&amp;nbsp;can generate another ticket and provide your configuration and logs for analysis. The precompiled SLM application firmware is available on&amp;nbsp;&lt;a href="https://www.nordicsemi.com/Products/Development-hardware/nRF9160-DK/Download?lang=en#infotabs"&gt;nRF9160 DK - Downloads - nordicsemi.com&lt;/a&gt;.&lt;/p&gt;
[quote user="Bert Baselmans"]That&amp;#39;s why I tried to PING with MODEM_SHELL. This worked well and I see that getaddrinfo() now returns the correct IP address for the subdomain.[/quote]
&lt;p&gt;I guess you mean your problem is solved. Correct?&amp;nbsp; Let me know if you need more help.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Name resolving of a subdomain</title><link>https://devzone.nordicsemi.com/thread/384172?ContentTypeID=1</link><pubDate>Wed, 31 Aug 2022 13:59:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39611d19-ec0c-418e-b1f8-476fd7481ae7</guid><dc:creator>Bert Baselmans</dc:creator><description>&lt;p&gt;Hi Charlie&lt;/p&gt;
&lt;p&gt;Unfortunately I am unable to generate the executable serial_LTE_modem due to configuration errors related to HTTP_CLIENT and MQTT. So I am unable to run the test using serial_LTE_modem. That&amp;#39;s why I tried to PING with MODEM_SHELL. This worked well and I see that getaddrinfo() now returns the correct IP address for the subdomain.&lt;/p&gt;
&lt;p&gt;I hope this helps&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Bert&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Name resolving of a subdomain</title><link>https://devzone.nordicsemi.com/thread/384086?ContentTypeID=1</link><pubDate>Wed, 31 Aug 2022 09:23:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5071a04-0a9c-4f01-aef3-f4cade454876</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Bert,&lt;/p&gt;
&lt;p&gt;Did you see any difference when you ping the two domains on PC terminal and&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.2/nrf/applications/serial_lte_modem/doc/slm_testing.html#icmp-at-commands"&gt;Testing scenarios — nRF Connect SDK 2.0.2 documentation (nordicsemi.com)&lt;/a&gt;&amp;nbsp;&lt;strong&gt;AT#XPING &lt;/strong&gt;command&lt;strong&gt;?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I am interested&amp;nbsp;to know the comparison&amp;nbsp;result.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>