'Create a new zone.
API docs: http://www.linode.com/api/dns/domain.create'

def create_zone(self, domain, type='master', ttl=None, extra=None):

    params = {'api_action': 'domain.create', 'Type': type, 'Domain': domain}
    if ttl:
        params['TTL_sec'] = ttl
    merged = merge_valid_keys(params=params, valid_keys=VALID_ZONE_EXTRA_PARAMS, extra=extra)
    data = self.connection.request(API_ROOT, params=params).objects[0]
    zone = Zone(id=data['DomainID'], domain=domain, type=type, ttl=ttl, extra=merged, driver=self)
    return zone
