diff options
Diffstat (limited to 'src/config.c')
-rw-r--r-- | src/config.c | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/src/config.c b/src/config.c index 6cf5609..aad39cc 100644 --- a/src/config.c +++ b/src/config.c @@ -20,9 +20,9 @@ struct grecs_list *synclist; static struct grecs_keyword sync_kw[] = { - { "path", - NULL, "Path of a keyword in named.conf which holds file name for this synchronization block", - grecs_type_string, NULL, offsetof(struct nssync, kwpath) }, + { "zone-conf", + NULL, "zone configuration file", + grecs_type_string, NULL, offsetof(struct nssync, zone_conf_file) }, { "soa-query", NULL, "Set query for retrieving SOA records", grecs_type_string, NULL, offsetof(struct nssync, soa_query) }, @@ -62,8 +62,8 @@ cb_sync(enum grecs_callback_command cmd, case grecs_callback_section_end: sp = *pdata; - if (!sp->kwpath) { - grecs_error(locus, 0, "path not defined"); + if (!sp->zone_conf_file) { + grecs_error(locus, 0, "zone-conf not defined"); err = 1; } if (!sp->soa_query) { @@ -113,6 +113,10 @@ static struct grecs_keyword nssync_kw[] = { "file", "File name of the Certificate Authority (CA) certificate", grecs_type_string, &sql_cacert }, + { "slave-status-file", + NULL, "Check slave status and save it in the given file", + grecs_type_string, &slave_status_file }, + { "tempdir", NULL, "Name for the temporary directory (must exist)", grecs_type_string, &tempdir }, @@ -120,13 +124,23 @@ static struct grecs_keyword nssync_kw[] = { { "named-conf", NULL, "Name of the named configuration file", grecs_type_string, &named_conf_file }, + { "bind-include-path", NULL, "Set include path for BIND configuration", grecs_type_string|GRECS_LIST, &bind_include_path }, + { "zonefile-dir", + NULL, "Directory for new zone files", + grecs_type_string, &bind_zonefile_dir }, + { "zonefile-pattern", + NULL, "Pattern for new zone file names", + grecs_type_string, &zone_file_pattern }, { "compare-command", NULL, "Command to compare two zone files", grecs_type_string, &compare_command }, + { "reload-command", + NULL, "Command to reload the nameserver", + grecs_type_string, &reload_command }, { "sync", N_("tag: string"), N_("Define a synchrinization block"), grecs_type_section, NULL, 0, cb_sync, NULL, sync_kw }, |