def validate_provider_name(name, supported_majors):
    """
    Validates the provider name against the format in the specification:
    <protocol-version>.dnscrypt-cert.<zone>
    """

    try:
        version, cert, _ = name.split('.', 2)
        return version in supported_majors and cert == 'dnscrypt-cert'
    except (AttributeError, TypeError, ValueError):
        return False