def get_zone(self, kwargs):
        """
        Return the records of a DNS zone.

        Arguments:
            #dns_zone:string
                DNS zone to retrieve records
        """
        dns_zone = kwargs["dns_zone"]

        first = True
        for name, basePre, baseSuf in (
            ("Domain", "CN=MicrosoftDNS,DC=DomainDnsZones", self.engine.base_dn),
            ("Forest", "CN=MicrosoftDNS,DC=ForestDnsZones", self.engine.forest_base_dn),
            ("Legacy", "CN=MicrosoftDNS,CN=System", self.engine.base_dn),
        ):
            try:
                results = list(
                    self.engine.query(
                        self.engine.ZONE_FILTER(),
                        base=f"DC={dns_zone},{basePre},{baseSuf}",
                    )
                )
            except LdapActiveDirectoryView.ActiveDirectoryLdapException as e:
                error(e)
            else:
                filteredResults = []
                for result in results:
                    result["dnsRecord"] = list(
                        filter(lambda rec: rec != "", result["dnsRecord"])
                    )
                    if len(result["dnsRecord"]) > 0:
                        filteredResults.append(result)

                if len(filteredResults) > 0:
                    if first:
                        first = False
                    else:
                        print()
                    info(f"{name} records:")
                    self.display(filteredResults)

        if first:
            info("No records found")

        Return the records of a DNS zone.

        Arguments:
            #dns_zone:string
                DNS zone to retrieve records
        
ldeep/__main__.py