Hostname based ip-address selection is nasty in linux. Adding some lenient address selection from hostname, domain name combination.

Signed-off-by: Madhu Venugopal <madhu@socketplane.io>