added dash as a valid character in hostname