Allow hyphen (-) in dsh hostnames

Names such as "deployment-apache01.eqiad.wmflabs" are valid hostnames.

Change-Id: Ia3c6b0b617766ca345e0295caadfdd32b5963109