⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 zone.h

📁 package of develop dns
💻 H
📖 第 1 页 / 共 3 页
字号:
 *	Returns the current zone options. * * Require: *	'zone' to be a valid zone. */voiddns_zone_setminrefreshtime(dns_zone_t *zone, isc_uint32_t val);/* *	Set the minimum refresh time. * * Requires: *	'zone' is valid. *	val > 0. */voiddns_zone_setmaxrefreshtime(dns_zone_t *zone, isc_uint32_t val);/* *	Set the maximum refresh time. * * Requires: *	'zone' is valid. *	val > 0. */voiddns_zone_setminretrytime(dns_zone_t *zone, isc_uint32_t val);/* *	Set the minimum retry time. * * Requires: *	'zone' is valid. *	val > 0. */voiddns_zone_setmaxretrytime(dns_zone_t *zone, isc_uint32_t val);/* *	Set the maximum retry time. * * Requires: *	'zone' is valid. *	val > 0. */isc_result_tdns_zone_setxfrsource4(dns_zone_t *zone, isc_sockaddr_t *xfrsource);isc_result_tdns_zone_setaltxfrsource4(dns_zone_t *zone, isc_sockaddr_t *xfrsource);/* * 	Set the source address to be used in IPv4 zone transfers. * * Require: *	'zone' to be a valid zone. *	'xfrsource' to contain the address. * * Returns: *	ISC_R_SUCCESS */isc_sockaddr_t *dns_zone_getxfrsource4(dns_zone_t *zone);isc_sockaddr_t *dns_zone_getaltxfrsource4(dns_zone_t *zone);/* *	Returns the source address set by a previous dns_zone_setxfrsource4 *	call, or the default of inaddr_any, port 0. * * Require: *	'zone' to be a valid zone. */isc_result_tdns_zone_setxfrsource6(dns_zone_t *zone, isc_sockaddr_t *xfrsource);isc_result_tdns_zone_setaltxfrsource6(dns_zone_t *zone, isc_sockaddr_t *xfrsource);/* * 	Set the source address to be used in IPv6 zone transfers. * * Require: *	'zone' to be a valid zone. *	'xfrsource' to contain the address. * * Returns: *	ISC_R_SUCCESS */isc_sockaddr_t *dns_zone_getxfrsource6(dns_zone_t *zone);isc_sockaddr_t *dns_zone_getaltxfrsource6(dns_zone_t *zone);/* *	Returns the source address set by a previous dns_zone_setxfrsource6 *	call, or the default of in6addr_any, port 0. * * Require: *	'zone' to be a valid zone. */isc_result_tdns_zone_setnotifysrc4(dns_zone_t *zone, isc_sockaddr_t *notifysrc);/* * 	Set the source address to be used with IPv4 NOTIFY messages. * * Require: *	'zone' to be a valid zone. *	'notifysrc' to contain the address. * * Returns: *	ISC_R_SUCCESS */isc_sockaddr_t *dns_zone_getnotifysrc4(dns_zone_t *zone);/* *	Returns the source address set by a previous dns_zone_setnotifysrc4 *	call, or the default of inaddr_any, port 0. * * Require: *	'zone' to be a valid zone. */isc_result_tdns_zone_setnotifysrc6(dns_zone_t *zone, isc_sockaddr_t *notifysrc);/* * 	Set the source address to be used with IPv6 NOTIFY messages. * * Require: *	'zone' to be a valid zone. *	'notifysrc' to contain the address. * * Returns: *	ISC_R_SUCCESS */isc_sockaddr_t *dns_zone_getnotifysrc6(dns_zone_t *zone);/* *	Returns the source address set by a previous dns_zone_setnotifysrc6 *	call, or the default of in6addr_any, port 0. * * Require: *	'zone' to be a valid zone. */voiddns_zone_setnotifyacl(dns_zone_t *zone, dns_acl_t *acl);/* *	Sets the notify acl list for the zone. * * Require: *	'zone' to be a valid zone. *	'acl' to be a valid acl. */voiddns_zone_setqueryacl(dns_zone_t *zone, dns_acl_t *acl);/* *	Sets the query acl list for the zone. * * Require: *	'zone' to be a valid zone. *	'acl' to be a valid acl. */voiddns_zone_setupdateacl(dns_zone_t *zone, dns_acl_t *acl);/* *	Sets the update acl list for the zone. * * Require: *	'zone' to be a valid zone. *	'acl' to be valid acl. */voiddns_zone_setforwardacl(dns_zone_t *zone, dns_acl_t *acl);/* *	Sets the forward unsigned updates acl list for the zone. * * Require: *	'zone' to be a valid zone. *	'acl' to be valid acl. */voiddns_zone_setxfracl(dns_zone_t *zone, dns_acl_t *acl);/* *	Sets the transfer acl list for the zone. * * Require: *	'zone' to be a valid zone. *	'acl' to be valid acl. */dns_acl_t *dns_zone_getnotifyacl(dns_zone_t *zone);/* * 	Returns the current notify acl or NULL. * * Require: *	'zone' to be a valid zone. * * Returns: *	acl a pointer to the acl. *	NULL */dns_acl_t *dns_zone_getqueryacl(dns_zone_t *zone);/* * 	Returns the current query acl or NULL. * * Require: *	'zone' to be a valid zone. * * Returns: *	acl a pointer to the acl. *	NULL */dns_acl_t *dns_zone_getupdateacl(dns_zone_t *zone);/* * 	Returns the current update acl or NULL. * * Require: *	'zone' to be a valid zone. * * Returns: *	acl a pointer to the acl. *	NULL */dns_acl_t *dns_zone_getforwardacl(dns_zone_t *zone);/* * 	Returns the current forward unsigned updates acl or NULL. * * Require: *	'zone' to be a valid zone. * * Returns: *	acl a pointer to the acl. *	NULL */dns_acl_t *dns_zone_getxfracl(dns_zone_t *zone);/* * 	Returns the current transfer acl or NULL. * * Require: *	'zone' to be a valid zone. * * Returns: *	acl a pointer to the acl. *	NULL */voiddns_zone_clearupdateacl(dns_zone_t *zone);/* *	Clear the current update acl. * * Require: *	'zone' to be a valid zone. */voiddns_zone_clearforwardacl(dns_zone_t *zone);/* *	Clear the current forward unsigned updates acl. * * Require: *	'zone' to be a valid zone. */voiddns_zone_clearnotifyacl(dns_zone_t *zone);/* *	Clear the current notify acl. * * Require: *	'zone' to be a valid zone. */voiddns_zone_clearqueryacl(dns_zone_t *zone);/* *	Clear the current query acl. * * Require: *	'zone' to be a valid zone. */voiddns_zone_clearxfracl(dns_zone_t *zone);/* *	Clear the current transfer acl. * * Require: *	'zone' to be a valid zone. */isc_boolean_tdns_zone_getupdatedisabled(dns_zone_t *zone);voiddns_zone_setupdatedisabled(dns_zone_t *zone, isc_boolean_t state);voiddns_zone_setchecknames(dns_zone_t *zone, dns_severity_t severity);/* * 	Set the severity of name checking when loading a zone. * * Require: *      'zone' to be a valid zone. */dns_severity_tdns_zone_getchecknames(dns_zone_t *zone);/* *	Return the current severity of name checking. * * Require: *	'zone' to be a valid zone. */voiddns_zone_setjournalsize(dns_zone_t *zone, isc_int32_t size);/* *	Sets the journal size for the zone. * * Requires: *	'zone' to be a valid zone. */isc_int32_tdns_zone_getjournalsize(dns_zone_t *zone);/* *	Return the journal size as set with a previous call to *	dns_zone_setjournalsize(). * * Requires: *	'zone' to be a valid zone. */isc_result_tdns_zone_notifyreceive(dns_zone_t *zone, isc_sockaddr_t *from,		       dns_message_t *msg);/* *	Tell the zone that it has recieved a NOTIFY message from another *	server.  This may cause some zone maintainence activity to occur. * * Requires: *	'zone' to be a valid zone. *	'*from' to contain the address of the server from which 'msg' *		was recieved. *	'msg' a message with opcode NOTIFY and qr clear. * * Returns: *	DNS_R_REFUSED *	DNS_R_NOTIMP *	DNS_R_FORMERR *	DNS_R_SUCCESS */voiddns_zone_setmaxxfrin(dns_zone_t *zone, isc_uint32_t maxxfrin);/* * Set the maximum time (in seconds) that a zone transfer in (AXFR/IXFR) * of this zone will use before being aborted. * * Requires: * 	'zone' to be valid initialised zone. */isc_uint32_tdns_zone_getmaxxfrin(dns_zone_t *zone);/* * Returns the maximum transfer time for this zone.  This will be * either the value set by the last call to dns_zone_setmaxxfrin() or * the default value of 1 hour. * * Requires: *	'zone' to be valid initialised zone. */voiddns_zone_setmaxxfrout(dns_zone_t *zone, isc_uint32_t maxxfrout);/* * Set the maximum time (in seconds) that a zone transfer out (AXFR/IXFR) * of this zone will use before being aborted. * * Requires: * 	'zone' to be valid initialised zone. */isc_uint32_tdns_zone_getmaxxfrout(dns_zone_t *zone);/* * Returns the maximum transfer time for this zone.  This will be * either the value set by the last call to dns_zone_setmaxxfrout() or * the default value of 1 hour. * * Requires: *	'zone' to be valid initialised zone. */isc_result_tdns_zone_setjournal(dns_zone_t *zone, const char *journal);/* * Sets the filename used for journaling updates / IXFR transfers. * The default journal name is set by dns_zone_setfile() to be * "file.jnl".  If 'journal' is NULL, the zone will have no * journal name. * * Requires: *	'zone' to be a valid zone. * * Returns: *	ISC_R_SUCCESS *	ISC_R_NOMEMORY */char *dns_zone_getjournal(dns_zone_t *zone);/* * Returns the journal name associated with this zone. * If no journal has been set this will be NULL. * * Requires: *	'zone' to be valid initialised zone. */dns_zonetype_tdns_zone_gettype(dns_zone_t *zone);/* * Returns the type of the zone (master/slave/etc.) * * Requires: *	'zone' to be valid initialised zone. */voiddns_zone_settask(dns_zone_t *zone, isc_task_t *task);/* * Give a zone a task to work with.  Any current task will be detached. * * Requires: *	'zone' to be valid. *	'task' to be valid. */voiddns_zone_gettask(dns_zone_t *zone, isc_task_t **target);/* * Attach '*target' to the zone's task. * * Requires: *	'zone' to be valid initialised zone. *	'zone' to have a task. *	'target' to be != NULL && '*target' == NULL. */voiddns_zone_notify(dns_zone_t *zone);/* * Generate notify events for this zone. * * Requires: *	'zone' to be a valid zone. */isc_result_tdns_zone_replacedb(dns_zone_t *zone, dns_db_t *db, isc_boolean_t dump);/* * Replace the database of "zone" with a new database "db".

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -