code: def _config_win32_domain(self, domain):
          
          # we call str() on domain to convert it from unicode to ascii
          self.domain = dns.name.from_text(str(domain))
docs: Configure a Domain registry entry.