hostname resolution for connection

it can be very convenient!