bin/named/zoneconf.c
/*
 * Set up a DLZ zone as writeable
 */
Set up a DLZ zone as writeable
Set up a DLZ zone as writeable
isc_result_t
ns_zone_configure_writeable_dlz(dns_dlzdb_t *dlzdatabase, dns_zone_t *zone,
				dns_rdataclass_t rdclass, dns_name_t *name)
{
	dns_db_t *db = NULL;
	isc_time_t now;
	isc_result_t result;
	TIME_NOW(&now);
	dns_zone_settype(zone, dns_zone_dlz);
	result = dns_sdlz_setdb(dlzdatabase, rdclass, name, &db);
	if (result != ISC_R_SUCCESS)
		return result;
	result = dns_zone_dlzpostload(zone, db);
	dns_db_detach(&db);
	return result;
}
isc_result_t ns_zone_configure_writeable_dlz ( dns_dlzdb_t * dlzdatabase , dns_zone_t * zone , dns_rdataclass_t rdclass , dns_name_t * name ) { dns_db_t * db = NULL ; isc_time_t now ; isc_result_t result ; TIME_NOW ( & now ) ; dns_zone_settype ( zone , dns_zone_dlz ) ; result = dns_sdlz_setdb ( dlzdatabase , rdclass , name , & db ) ; if ( result != ISC_R_SUCCESS ) return result ; result = dns_zone_dlzpostload ( zone , db ) ; dns_db_detach ( & db ) ; return result ; }
Set up a DLZ zone as writeable
Set up a DLZ zone as writeable