# FreeRTOS+TCP\_Multi Bug: DNS missing EndPoint in prvGetHostByName

**URL:** <https://forums.freertos.org/t/freertos-tcp-multi-bug-dns-missing-endpoint-in-prvgethostbyname/6731>\
**Category:** Kernel\
**Created:** [August 11, 2017, 3:36pm UTC](https://forums.freertos.org/t/freertos-tcp-multi-bug-dns-missing-endpoint-in-prvgethostbyname/6731 "2017-08-11T15:36:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [August 11, 2017, 3:36pm UTC](https://forums.freertos.org/t/freertos-tcp-multi-bug-dns-missing-endpoint-in-prvgethostbyname/6731/1 "2017-08-11T15:36:54Z")

</div>

**[miclam](https://sourceforge.net/u/miclam/)** wrote on [Friday, August 11, 2017](https://sourceforge.net/p/freertos/discussion/382005/thread/32811b1b/#4996):

Hello,  
I’m finally trying out the DNS client of +TCP\_multi. I noted that in prvGetHostByName() the method FreeRTOS\_GetAddressConfiguration gets called with a NULL EndPoint (Line 570 in FreeRTOS\_DNS.c):  
` FreeRTOS_GetAddressConfiguration( NULL, NULL, NULL, NULL, &ulIPAddress );`

Richard stated out it should not be NULL: /\*_RB_ First parameter to FreeRTOS\_GetAddressConfiguration() should not be NULL! \*/

As I only have one EndPoint I changed it to:  
` FreeRTOS_GetAddressConfiguration( FreeRTOS_FirstEndPoint( NULL ), NULL, NULL, NULL, &ulIPAddress );`

But I’m not sure that this is an appropriate solution for multiple endpoints. Probably FreeRTOS\_FindDefaultEndPoint() is a better choice.

Regards, Michael

---

<div class="post-metadata">

**Author:** ![htibosch](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/htibosch/32/62_2.png) [@htibosch](https://forums.freertos.org/u/htibosch)\
**Post date:** [August 11, 2017, 6:44pm UTC](https://forums.freertos.org/t/freertos-tcp-multi-bug-dns-missing-endpoint-in-prvgethostbyname/6731/2 "2017-08-11T18:44:10Z")

</div>

**[heinbali01](https://sourceforge.net/u/heinbali01/)** wrote on [Friday, August 11, 2017](https://sourceforge.net/p/freertos/discussion/382005/thread/32811b1b/#85b8):

As FreeRTOS+TCP/multi has not yet been released publicly, most readers of this forum won’t bother what you are writing about.

FreeRTOS+TCP/multi is a new version of +TCP which allows for multiple interfaces (NIC’s). At the same time, the IPv6 protocol is being introduced.  
Anyone who is interested in using and testing it, can write me at h [point] tibosch [at] freertos [point] org.

Tomorrow I will respond to you (Michael) by email. Regards.
