support for host using DNS roundrobin.

add some fix for host DNS roundrobin(ex: bitbucket.org).