If the DNS name is longer than ipconfigDNS_CACHE_NAME_LENGTH, shouldn’t this somehow do a callback when using FreeRTOS_gethostbyname_a? As it is now the callback just never fires.
Currently it seems to just return 0 and do nothing. Callback should be invoked when the address resolution is deferred. In this case, we can probably return some error code to indicate that the DNS name is too long. But as we return the IP address, it may be hard also.