def find_hosted_zone(client, domain_name):
    """Find a hosted zone matching domain"""
    paginator = client.get_paginator('list_hosted_zones')
    for page in paginator.paginate():
        for zone in page['HostedZones']:
            if domain_name.endswith(zone['Name'][:-1]):
                return zone
    return None
