Make it possible to set the hostname explicitly rather than using get{host,domain...