Lines Matching refs:zone

87     // The zone tree used for list operations
782 * A zone's contents is a NameNode tree that, once created, is never
791 * Returns the node in the zone tree corresponding to a
793 * tree has not yet been populated or has been outdated, a zone
799 // Find deepest related zone in zone tree.
801 DnsName zone;
805 dprint("Deepest related zone in zone tree: " +
815 // If fqdn is in znode's zone, is not at a zone cut, and
821 dprint("Found node " + fqdn + " in zone tree");
822 zone = (DnsName)
824 boolean current = isZoneCurrent(znode, zone);
847 dprint("Adding node " + fqdn + " to zone tree");
849 // Find fqdn's zone and add it to the tree.
850 zone = getResolver().findZoneName(fqdn, ResourceRecord.CLASS_INTERNET,
852 dprint("Node's zone is " + zone);
854 znode = (ZoneNode) zoneTree.add(zone, 1); // "1" to skip root
864 : populateZone(znode, zone);
866 // Desired node should now be in znode's populated zone. Find it.
867 nnode = topOfZone.get(fqdn, zone.size());
870 "DNS error: node not found in its own zone");
872 dprint("Found node in newly-populated zone");
877 * Does a zone transfer to [re]populate a zone in the zone tree.
878 * Returns the zone's new contents.
880 private NameNode populateZone(ZoneNode znode, DnsName zone)
882 dprint("Populating zone " + zone);
885 getResolver().queryZone(zone,
887 dprint("zone xfer complete: " + rrs.answer.size() + " records");
888 return znode.populate(zone, rrs);
896 * If there is no SOA record, znode is not (or is no longer) a zone:
903 private boolean isZoneCurrent(ZoneNode znode, DnsName zone)
911 getResolver().findSoa(zone, ResourceRecord.CLASS_INTERNET,
957 * Nodes that have children or that are zone cuts are returned with