Add simple sanity check of hostnames.