Is there a version of gethostbyname that is thread-safe on MAC? On most operating systems there is a function gethostbyname_r that is thread-safe. gethostbyname returns a pointer to static memory and is thus not reentrant. Trying to fix DnsUtil for MAC. Can Mac folks chime in here. Jason