Support hostname that resolve to IPv6-only address
Support hostname that resolve to IPv6-only address

The current hostname validation does not cope with IPv6-only hostnames. Use getaddrinfo instead of gethostbyname to fix this. getaddrinfo raises the same exceptions and should work like a drop-in-replacement in this scenario.

We should also address the IPv4-only check for if then input is an IP-address but the use of split on ':' is problematic and prevents code to check for IPv6-addresses as input. I'm not sure what the thought behind allowing "name:host" is so leaving it untouched.

I have proposed code to check and warn for both IPv4 and IPv6 address input that I can provide as soon as I understand the scope of parsing "name:host" input.
ceph/ceph-deploy,ktdreyer/ceph-deploy,isyippee/ceph-deploy,SUSE/ceph-deploy-to-be-deleted,Vicente-Cheng/ceph-deploy,isyippee/ceph-deploy,SUSE/ceph-deploy,alfredodeza/ceph-deploy,codenrhoden/ceph-deploy,jumpstarter-io/ceph-deploy,shenhequnying/ceph-deploy,ceph/ceph-deploy,branto1/ceph-deploy,Vicente-Cheng/ceph-deploy,ghxandsky/ceph-deploy,alfredodeza/ceph-deploy,ktdreyer/ceph-deploy,rtulke/ceph-deploy,jumpstarter-io/ceph-deploy,ddiss/ceph-deploy,rtulke/ceph-deploy,osynge/ceph-deploy,trhoden/ceph-deploy,branto1/ceph-deploy,zhouyuan/ceph-deploy,imzhulei/ceph-deploy,imzhulei/ceph-deploy,zhouyuan/ceph-deploy,ddiss/ceph-deploy,SUSE/ceph-deploy-to-be-deleted,ghxandsky/ceph-deploy,codenrhoden/ceph-deploy,shenhequnying/ceph-deploy,SUSE/ceph-deploy,osynge/ceph-deploy,trhoden/ceph-deploy