Lines Matching defs:zone
19 #include <dns/zone.h>
35 dns_zone_t *zone;
43 * Write diff generated in syncptr() to reverse zone.
60 CHECK(dns_zone_getdb(pevent->zone, &db));
70 dns_zone_detach(&pevent->zone);
76 * Find a reverse zone for given IP address.
80 * @param[out] zone DNS zone for reverse record matching the IP address
83 * reverse zone managed by this driver instance.
85 * @retval ISC_R_NOTFOUND Suitable reverse zone was not found because it
90 dns_name_t *name, dns_zone_t **zone)
98 REQUIRE(zone != NULL && *zone == NULL);
124 /* Find a zone containing owner name of the PTR record. */
125 result = dns_zt_find(inst->view->zonetable, name, 0, NULL, zone);
131 /* Make sure that the zone is managed by this driver. */
132 if (*zone != inst->zone1 && *zone != inst->zone2) {
133 dns_zone_detach(zone);
149 * @pre Reverse zone is managed by this driver.
158 * Change to reverse zone will be done asynchronously.
192 /* Check if reverse zone is managed by this driver */
196 log_error_r("PTR record synchonization skipped: reverse zone "
202 /* Reverse zone is managed by this driver, prepare PTR record */
203 pevent->zone = NULL;
204 dns_zone_attach(ptr_zone, &pevent->zone);
219 * Send update event to the reverse zone.