DNS makes MQX tasks hang on M52259DEMO

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

DNS makes MQX tasks hang on M52259DEMO

Jump to solution
3,584 Views
jhmrd
Contributor III

I am trying to use DNS on the M52259DEMO board. I have been able to get the gateway and DNS IP addresses set via DHCP, as shown by the ipconfig command. I defined RTCSCFG_ENABLE_UDP and RTCSCFG_ENABLE_DNS as 1 in user_config.h, then rebuilt all of MQX. I also had to move the #if RTCSCFG_ENABLE_DNS after some #includes in a few source files to get rid of some link errors.

 

Now I can ping IP addresses out on the internet as long as I enter the explicit dotted quad IP address I want to ping. But as some as I try to ping a domain name, I get no response, and the serial shell and telnet stop responding. 

 

Any ideas?

 

Thanks

 

Labels (1)
Tags (1)
0 Kudos
Reply
1 Solution
1,388 Views
PetrM
Senior Contributor I

Hello,

 

please get latest release, where you can try to use lwdns feature now.

You just need to define RTCSCFG_ENABLE_LWDNS 1 in your user_config.h.

It works over either UDP or TCP.

 

Regards,

PetrM

 

View solution in original post

0 Kudos
Reply
2 Replies
1,389 Views
PetrM
Senior Contributor I

Hello,

 

please get latest release, where you can try to use lwdns feature now.

You just need to define RTCSCFG_ENABLE_LWDNS 1 in your user_config.h.

It works over either UDP or TCP.

 

Regards,

PetrM

 

0 Kudos
Reply
1,388 Views
jhmrd
Contributor III
You are correct. DNS works without a bunch of code changes in the MQX 3.1 release.
0 Kudos
Reply