Add specs for hostnames, fix #1