Added hostname extraction routine to use for resolver call.