00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef NAMED_CONTROL_H
00021 #define NAMED_CONTROL_H 1
00022
00023
00024
00025
00026
00027
00028 #include <isccc/types.h>
00029
00030 #include <isccfg/aclconf.h>
00031
00032 #include <named/types.h>
00033
00034 #define NS_CONTROL_PORT 953
00035
00036 #define NS_COMMAND_STOP "stop"
00037 #define NS_COMMAND_HALT "halt"
00038 #define NS_COMMAND_RELOAD "reload"
00039 #define NS_COMMAND_RECONFIG "reconfig"
00040 #define NS_COMMAND_REFRESH "refresh"
00041 #define NS_COMMAND_RETRANSFER "retransfer"
00042 #define NS_COMMAND_DUMPSTATS "stats"
00043 #define NS_COMMAND_QUERYLOG "querylog"
00044 #define NS_COMMAND_DUMPDB "dumpdb"
00045 #define NS_COMMAND_SECROOTS "secroots"
00046 #define NS_COMMAND_TRACE "trace"
00047 #define NS_COMMAND_NOTRACE "notrace"
00048 #define NS_COMMAND_FLUSH "flush"
00049 #define NS_COMMAND_FLUSHNAME "flushname"
00050 #define NS_COMMAND_FLUSHTREE "flushtree"
00051 #define NS_COMMAND_STATUS "status"
00052 #define NS_COMMAND_TSIGLIST "tsig-list"
00053 #define NS_COMMAND_TSIGDELETE "tsig-delete"
00054 #define NS_COMMAND_FREEZE "freeze"
00055 #define NS_COMMAND_UNFREEZE "unfreeze"
00056 #define NS_COMMAND_THAW "thaw"
00057 #define NS_COMMAND_TIMERPOKE "timerpoke"
00058 #define NS_COMMAND_RECURSING "recursing"
00059 #define NS_COMMAND_NULL "null"
00060 #define NS_COMMAND_NOTIFY "notify"
00061 #define NS_COMMAND_VALIDATION "validation"
00062 #define NS_COMMAND_SCAN "scan"
00063 #define NS_COMMAND_SIGN "sign"
00064 #define NS_COMMAND_LOADKEYS "loadkeys"
00065 #define NS_COMMAND_ADDZONE "addzone"
00066 #define NS_COMMAND_MODZONE "modzone"
00067 #define NS_COMMAND_DELZONE "delzone"
00068 #define NS_COMMAND_SHOWZONE "showzone"
00069 #define NS_COMMAND_SYNC "sync"
00070 #define NS_COMMAND_SIGNING "signing"
00071 #define NS_COMMAND_ZONESTATUS "zonestatus"
00072 #define NS_COMMAND_NTA "nta"
00073 #define NS_COMMAND_TESTGEN "testgen"
00074 #define NS_COMMAND_MKEYS "managed-keys"
00075
00076 isc_result_t
00077 ns_controls_create(ns_server_t *server, ns_controls_t **ctrlsp);
00078
00079
00080
00081
00082 void
00083 ns_controls_destroy(ns_controls_t **ctrlsp);
00084
00085
00086
00087
00088
00089
00090
00091 isc_result_t
00092 ns_controls_configure(ns_controls_t *controls, const cfg_obj_t *config,
00093 cfg_aclconfctx_t *aclconfctx);
00094
00095
00096
00097
00098
00099
00100
00101 void
00102 ns_controls_shutdown(ns_controls_t *controls);
00103
00104
00105
00106
00107 isc_result_t
00108 ns_control_docommand(isccc_sexpr_t *message, isc_buffer_t **text);
00109
00110 #endif