discourse/discourse — pull request #2395 by ok-harry (2014-05-28 13:34:19+00:00)
Title: Hyphen(-) is valid for hostname.

http://en.wikipedia.org/wiki/Hostname#Restrictions_on_valid_host_names
Hyphen is rarely used for public domain name.
But sometimes it is useful for the internal hostnames.