add logging for unresolvable hostname
Merge pull request #8 from watsoncj/logging

add logging for unresolvable hostname