Prevent adding undefined IP address to the hosts list
Merge pull request #403 from koeppea/undefined-ip

Prevent adding undefined IP address to the hosts list
Merge remote-tracking branch 'upstream/master' into fix-warnings