in reply to Matching RFC1912 compliant hostnames
See Test the syntactic validity of a domain name and Fully Qualified Domain Name for previous discussions of this.