fix hostname rules