#include <isc/lang.h>
#include <isc/types.h>
#include <isccfg/aclconf.h>
#include <isccfg/cfg.h>
Go to the source code of this file.
Defines | |
#define | NS_ZONECONF_H 1 |
Functions | |
ISC_LANG_BEGINDECLS isc_result_t | ns_zone_configure (const cfg_obj_t *config, const cfg_obj_t *vconfig, const cfg_obj_t *zconfig, cfg_aclconfctx_t *ac, dns_zone_t *zone, dns_zone_t *raw) |
Configure or reconfigure a zone according to the named.conf data in 'cctx' and 'czone'. | |
isc_boolean_t | ns_zone_reusable (dns_zone_t *zone, const cfg_obj_t *zconfig) |
If 'zone' can be safely reconfigured according to the configuration data in 'zconfig', return ISC_TRUE. If the configuration data is so different from the current zone state that the zone needs to be destroyed and recreated, return ISC_FALSE. | |
isc_result_t | ns_zone_configure_writeable_dlz (dns_dlzdb_t *dlzdatabase, dns_zone_t *zone, dns_rdataclass_t rdclass, dns_name_t *name) |
Definition in file zoneconf.h.
#define NS_ZONECONF_H 1 |
Definition at line 21 of file zoneconf.h.
ISC_LANG_BEGINDECLS isc_result_t ns_zone_configure | ( | const cfg_obj_t * | config, | |
const cfg_obj_t * | vconfig, | |||
const cfg_obj_t * | zconfig, | |||
cfg_aclconfctx_t * | ac, | |||
dns_zone_t * | zone, | |||
dns_zone_t * | raw | |||
) |
Configure or reconfigure a zone according to the named.conf data in 'cctx' and 'czone'.
The zone origin is not configured, it is assumed to have been set at zone creation time.
Require:
Primary master functionality.
Definition at line 792 of file zoneconf.c.
References allow_notify, allow_query, allow_query_on, allow_transfer, allow_update, allow_update_forwarding, arg, cfg_map_get(), cfg_obj_asboolean(), cfg_obj_assockaddr(), cfg_obj_asstring(), cfg_obj_asuint32(), cfg_obj_asuint64(), cfg_obj_getdscp(), cfg_obj_isboolean(), cfg_obj_isstring(), cfg_obj_isvoid(), cfg_obj_log(), cfg_tuple_get(), checknames, configure_staticstub(), configure_zone_acl(), configure_zone_ssutable(), dialup(), dns_acl_isinsecure(), dns_dialuptype_no, dns_dialuptype_notify, dns_dialuptype_notifypassive, dns_dialuptype_passive, dns_dialuptype_refresh, dns_dialuptype_yes, DNS_LOGCATEGORY_SECURITY, dns_master_style_default, dns_master_style_full, dns_masterformat_map, dns_masterformat_raw, dns_masterformat_text, dns_notifytype_explicit, dns_notifytype_masteronly, dns_notifytype_no, dns_notifytype_yes, dns_nsstatscounter_max, dns_rdatatypestats_create(), dns_stats_detach(), dns_updatemethod_date, dns_updatemethod_increment, dns_updatemethod_unixtime, dns_zone_clearforwardacl(), dns_zone_clearnotifyacl(), dns_zone_clearqueryacl(), dns_zone_clearqueryonacl(), dns_zone_clearupdateacl(), dns_zone_clearxfracl(), dns_zone_getmctx(), dns_zone_getupdateacl(), dns_zone_getview(), dns_zone_master, dns_zone_redirect, dns_zone_setalsonotify(), dns_zone_setalsonotifydscpkeys(), dns_zone_setaltxfrsource4(), dns_zone_setaltxfrsource4dscp(), dns_zone_setaltxfrsource6(), dns_zone_setaltxfrsource6dscp(), dns_zone_setclass(), dns_zone_setdbtype(), dns_zone_setdialup(), dns_zone_setfile3(), dns_zone_setforwardacl(), dns_zone_setidlein(), dns_zone_setidleout(), dns_zone_setisself(), dns_zone_setjournal(), dns_zone_setjournalsize(), dns_zone_setkeydirectory(), dns_zone_setkeyopt(), dns_zone_setmasters(), dns_zone_setmasterswithkeys(), dns_zone_setmaxrefreshtime(), dns_zone_setmaxretrytime(), dns_zone_setmaxttl(), dns_zone_setmaxxfrin(), dns_zone_setmaxxfrout(), dns_zone_setminrefreshtime(), dns_zone_setminretrytime(), dns_zone_setnodes(), dns_zone_setnotifyacl(), dns_zone_setnotifydelay(), dns_zone_setnotifysrc4(), dns_zone_setnotifysrc4dscp(), dns_zone_setnotifysrc6(), dns_zone_setnotifysrc6dscp(), dns_zone_setnotifytype(), dns_zone_setoption(), dns_zone_setprivatetype(), dns_zone_setqueryacl(), dns_zone_setqueryonacl(), dns_zone_setrcvquerystats(), dns_zone_setrefreshkeyinterval(), dns_zone_setrequestexpire(), dns_zone_setrequestixfr(), dns_zone_setrequeststats(), dns_zone_setserialupdatemethod(), dns_zone_setsignatures(), dns_zone_setsigresigninginterval(), dns_zone_setsigvalidityinterval(), dns_zone_setstatlevel(), dns_zone_settype(), dns_zone_setupdateacl(), dns_zone_setxfracl(), dns_zone_setxfrsource4(), dns_zone_setxfrsource4dscp(), dns_zone_setxfrsource6(), dns_zone_setxfrsource6dscp(), dns_zone_setzeronosoattl(), dns_zone_slave, dns_zone_staticstub, dns_zone_stub, DNS_ZONEKEY_ALLOW, DNS_ZONEKEY_MAINTAIN, DNS_ZONEKEY_NORESIGN, DNS_ZONEOPT_CHECKDUPRR, DNS_ZONEOPT_CHECKDUPRRFAIL, DNS_ZONEOPT_CHECKINTEGRITY, DNS_ZONEOPT_CHECKMX, DNS_ZONEOPT_CHECKMXFAIL, DNS_ZONEOPT_CHECKNAMES, DNS_ZONEOPT_CHECKNAMESFAIL, DNS_ZONEOPT_CHECKSIBLING, DNS_ZONEOPT_CHECKSPF, DNS_ZONEOPT_CHECKWILDCARD, DNS_ZONEOPT_DNSKEYKSKONLY, DNS_ZONEOPT_IGNOREMXCNAME, DNS_ZONEOPT_IGNORESRVCNAME, DNS_ZONEOPT_IXFRFROMDIFFS, DNS_ZONEOPT_MULTIMASTER, DNS_ZONEOPT_NOTIFYTOSOA, DNS_ZONEOPT_NSEC3TESTZONE, DNS_ZONEOPT_SECURETOINSECURE, DNS_ZONEOPT_TRYTCPREFRESH, DNS_ZONEOPT_UPDATECHECKKSK, DNS_ZONEOPT_USEALTXFRSRC, DNS_ZONEOPT_WARNMXCNAME, DNS_ZONEOPT_WARNSRVCNAME, dns_zonestat_full, dns_zonestat_none, dns_zonestat_terse, ignore(), INSIST, ISC_FALSE, ISC_LOG_ERROR, ISC_LOG_WARNING, isc_log_write(), isc_mem_allocate, isc_mem_free, isc_mem_get, isc_mem_put, isc_mem_strdup, ISC_PRINT_QUADFORMAT, ISC_R_FAILURE, ISC_R_NOMEMORY, ISC_R_RANGE, ISC_R_SUCCESS, isc_stats_create(), isc_stats_detach(), ISC_TRUE, ISC_UINT32_MAX, masterstyle, maxttl, mctx, dns_view::name, ns_add_reserved_dispatch(), ns_client_isself(), ns_config_get(), ns_config_getclass(), ns_config_getipandkeylist(), ns_config_putipandkeylist(), NS_LOGCATEGORY_GENERAL, NS_LOGMODULE_SERVER, RETERR, SIGNED, str, strtoargv(), zname, and zonetype_fromconfig().
Referenced by configure_zone().
isc_boolean_t ns_zone_reusable | ( | dns_zone_t * | zone, | |
const cfg_obj_t * | zconfig | |||
) |
If 'zone' can be safely reconfigured according to the configuration data in 'zconfig', return ISC_TRUE. If the configuration data is so different from the current zone state that the zone needs to be destroyed and recreated, return ISC_FALSE.
Definition at line 1782 of file zoneconf.c.
References cfg_map_get(), cfg_obj_asboolean(), cfg_obj_asstring(), cfg_tuple_get(), dns_zone_detach(), dns_zone_getfile(), dns_zone_getraw(), dns_zone_gettype(), dns_zone_log(), dns_zone_staticstub, ISC_FALSE, ISC_LOG_DEBUG, ISC_TRUE, and zonetype_fromconfig().
Referenced by configure_zone().
isc_result_t ns_zone_configure_writeable_dlz | ( | dns_dlzdb_t * | dlzdatabase, | |
dns_zone_t * | zone, | |||
dns_rdataclass_t | rdclass, | |||
dns_name_t * | name | |||
) |
Definition at line 1763 of file zoneconf.c.
References dns_db_detach(), dns_sdlz_setdb, dns_zone_dlz, dns_zone_dlzpostload(), dns_zone_settype(), ISC_R_SUCCESS, now, and TIME_NOW.
Referenced by dlzconfigure_callback().