<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: DNS not working! in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/DNS-not-working/m-p/151819#M489</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have found the same problem. In my case, i try to resolve "smtp.laposte.net", but the string returned is&lt;/P&gt;&lt;P&gt;4 smtp 10 laposte 3 net&lt;/P&gt;&lt;P&gt;since it would be 7 for laposte...&lt;/P&gt;&lt;P&gt;i'll work with the IP address hopping the problem will be fixed in the next version of MQX&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Christophe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Dec 2010 17:23:36 GMT</pubDate>
    <dc:creator>CMAR</dc:creator>
    <dc:date>2010-12-16T17:23:36Z</dc:date>
    <item>
      <title>DNS not working!</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/DNS-not-working/m-p/151815#M485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't seem to get DNS functionality to work!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried building the secure email demo program, which has DNS for the time server lookup, but it fails to resolve DNS, giving the error 'Failed - address not resolved'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've set RTCSCFG_ENABLE_LWDNS 1 in user_config.h and rebuilt MQX.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm sure about the DNS address (192.168.1.1) and have set up a PC on the network to have a static IP and this DNS successfully.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MQX networking is otherwise working, I can telnet in to web_hvac, for instance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried coding it myself too, using the RTCS user guide for reference: still dead.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using MQX 3.6 and the TWRMCF52259.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea what I might be doing wrong? I'd like to get the heads-up of the security email demo working to the point that it can resolve the time server, if possible. Does it actually work for anyone else?&amp;nbsp; Anyone fancy doing a quick test?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Sep 2010 06:29:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/DNS-not-working/m-p/151815#M485</guid>
      <dc:creator>Joe2</dc:creator>
      <dc:date>2010-09-28T06:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: DNS not working!</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/DNS-not-working/m-p/151816#M486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;my first trials with DNS also went wrong. I am using MQX3.6 with CW 7.2 end tryed with RTCSCFG_ENABLE_LWDNS set to 1 and RTCSCFG_ENABLE_DNS set to 0 and derived my code form the Security_Network.c of the security_email demo.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I discovered an error in the library module resolver.c in the routine domains_equal(). There is also&lt;BR /&gt;also suspicious comment on the first line of the body: 'this needs to be fixed'!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This routine really doesn't work: In my trials, the 2 compared string were the same with the exception&lt;BR /&gt;of the dropped dots in string 'res_domain'. If in, this case, i shortcut the comparison and force a TRUE return&lt;BR /&gt;value the query to the DNS server completes succesfully (the IP address is already known at this point)&lt;BR /&gt;with the correct ip address.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The same problem seems to be already present in MQX3.1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this not a bug to be fixed by Freescale?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Fabio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Oct 2010 14:46:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/DNS-not-working/m-p/151816#M486</guid>
      <dc:creator>effe2</dc:creator>
      <dc:date>2010-10-20T14:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: DNS not working!</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/DNS-not-working/m-p/151817#M487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I forgot to indicate that i am using the M52259DEMO board.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Fabio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Oct 2010 14:52:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/DNS-not-working/m-p/151817#M487</guid>
      <dc:creator>effe2</dc:creator>
      <dc:date>2010-10-20T14:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: DNS not working!</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/DNS-not-working/m-p/151818#M488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the routine compares dotted domain name (string)&amp;nbsp;with domain name in dns packet format (e.g.&amp;nbsp;6&amp;nbsp;forums 9 freescale 3 com 0). It seems to work ok for me.&lt;/P&gt;&lt;P&gt;But on the other hand, those 2 routines working with domain names do not handle compressed names properly.&lt;/P&gt;&lt;P&gt;So thanks for pointing this out, the fix will be available in the next release.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;PetrM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Oct 2010 21:40:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/DNS-not-working/m-p/151818#M488</guid>
      <dc:creator>PetrM</dc:creator>
      <dc:date>2010-10-20T21:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: DNS not working!</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/DNS-not-working/m-p/151819#M489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have found the same problem. In my case, i try to resolve "smtp.laposte.net", but the string returned is&lt;/P&gt;&lt;P&gt;4 smtp 10 laposte 3 net&lt;/P&gt;&lt;P&gt;since it would be 7 for laposte...&lt;/P&gt;&lt;P&gt;i'll work with the IP address hopping the problem will be fixed in the next version of MQX&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Christophe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Dec 2010 17:23:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/DNS-not-working/m-p/151819#M489</guid>
      <dc:creator>CMAR</dc:creator>
      <dc:date>2010-12-16T17:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: DNS not working!</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/DNS-not-working/m-p/151820#M490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is that tolower returns the uppercase letter.&amp;nbsp; I fixed it this way, and now I can resolve internet addresses with mixed case input:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;line 2762 of resolver.c:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (req_domain[req_index++] != tolower(res_domain[res_index++])) {&lt;BR /&gt;﻿+ &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (tolower(req_domain[req_index++]) != tolower(res_domain[res_index++])) {&lt;BR /&gt;﻿﻿&lt;/P&gt;&lt;P&gt;Blake&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Aug 2011 02:14:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/DNS-not-working/m-p/151820#M490</guid>
      <dc:creator>blake_genes</dc:creator>
      <dc:date>2011-08-27T02:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: DNS not working!</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/DNS-not-working/m-p/151821#M491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Further research shows that toupper and tolower are swapped in the Codewarrior header files.&amp;nbsp; A fix is here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A __default_attr="64812" class="jive_macro jive_macro_thread default_title" href="https://community.freescale.com/thread/64812" jivemacro="thread" title="https://community.freescale.com/thread/64812"&gt;https://community.freescale.com/thread/64812&lt;/A&gt;﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Aug 2011 05:04:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/DNS-not-working/m-p/151821#M491</guid>
      <dc:creator>blake_genes</dc:creator>
      <dc:date>2011-08-27T05:04:40Z</dc:date>
    </item>
  </channel>
</rss>

