Only resolve hostname if it isn't already an IP address