Question: are underscores allowed in hostnames?
Answer: While a hostname may not contain other characters, such as the underscore character (_), other DNS names may contain the underscore. ... Systems such as DomainKeys and service records use the underscore as a means to assure that their special character is not confused with hostnames.