def get_zones():
    return Domain.objects.filter(~Q(master_domain__soa=F('soa')),
                                 soa__isnull=False)
This function returns a list of domains that are at the root of their
dataset/ETHPy150Open mozilla/inventory/mozdns/utils.py/get_zones