code: def create(gandi, domain, zone_id, name, type, value, ttl):
      
  
      if not zone_id:
          result = gandi.domain.info(domain)
          zone_id = result['zone_id']
  
      if not zone_id:
          gandi.echo('No zone records found, domain %s doesn\'t seems to be '
                     'managed at Gandi.' % domain)
          return
  
      record = {'type': type, 'name': name, 'value': value}
      if ttl:
          record['ttl'] = ttl
  
      result = gandi.record.create(zone_id, record)
      return result
docs: Create new DNS zone record entry for a domain.