Ensure the the hostname -> ip-address DNS resolution is done every time a socket is created