def METHOD_NAME(domain: digitalocean.Domain, full_record_name: str) -> str:
    # The domain, from DigitalOcean's point of view, is automatically appended.
    return full_record_name.rpartition("." + domain.name)[0]