- Avoid using gethostbyname() which is not thread-safe