'Return a list of records for the provided zone.
:param zone: Zone to list records for.
:type zone: :class:`Zone`
:return: ``list`` of :class:`Record`'

def list_records(self, zone):

    action = '/app/dns/dyndns.jsp?'
    params = {'action': 'QUERY', 'name': ('**.' + zone.id)}
    try:
        response = self.connection.request(action=action, params=params)
    except ZonomiException:
        e = sys.exc_info()[1]
        if (e.code == '404'):
            raise ZoneDoesNotExistError(zone_id=zone.id, driver=self, value=e.message)
        raise e
    records = self._to_records(response.objects, zone)
    return records
