Catch errors related to invalid hostnames.

example: .example.com