code: def domain_create(self, domain, master=True, **kwargs):
          
          params = {
              'domain': domain,
              'type': 'master' if master else 'slave',
          }
          params.update(kwargs)
  
          result = self.post('/domains', data=params)
  
          if not 'id' in result:
              raise UnexpectedResponseError('Unexpected response when creating Domain!', json=result)
  
          d = Domain(self, result['id'], result)
          return d
docs: Registers a new Domain on the acting user's account.  Make sure to point
          your registrar to Linode's nameservers so that Linode's DNS manager will
          correctly serve your domain.
  
          :param domain: The domain to register to Linode's DNS manager.
          :type domain: str
          :param master: Whether this is a master (defaults to true)
          :type master: bool
  
          :returns: The new Domain object.
          :rtype: Domain