Allow dots in hostname

Sometimes it is useful to allow dots in hostname