refine openssl connection
add local dns resolve