code: def update_domain(self, domain, emailAddress=None, ttl=None, comment=None):
          
          if not any((emailAddress, ttl, comment)):
              raise exc.MissingDNSSettings(
                      "No settings provided to update_domain().")
          uri = "/domains/%s" % utils.get_id(domain)
          body = {"comment": comment,
                  "ttl": ttl,
                  "emailAddress": emailAddress,
                  }
          none_keys = [key for key, val in body.items()
                  if val is None]
          for none_key in none_keys:
              body.pop(none_key)
          resp, resp_body = self._async_call(uri, method="PUT", body=body,
                  error_class=exc.DomainUpdateFailed, has_response=False)
          return resp_body
docs: Provides a way to modify the following attributes of a domain
          record:
              - email address
              - ttl setting
              - comment