hosts template: add domain name to local machine records. Refs #2209