'Create a new record.
Provider API docs:
https://www.zerigo.com/docs/apis/dns/1.1/hosts/create
@inherits: :class:`DNSDriver.create_record`'

def create_record(self, name, zone, type, data, extra=None):

    path = (API_ROOT + ('zones/%s/hosts.xml' % zone.id))
    record_elem = self._to_record_elem(name=name, type=type, data=data, extra=extra)
    response = self.connection.request(action=path, data=ET.tostring(record_elem), method='POST')
    assert (response.status == httplib.CREATED)
    record = self._to_record(elem=response.object, zone=zone)
    return record
