construct hostnames out of two codewords