mirror of
https://github.com/webmin/webmin.git
synced 2025-07-20 16:48:46 +00:00
Add slave zone file format option
This commit is contained in:
@ -44,7 +44,7 @@ print &opt_input($text{'slave_max'}, "max-transfer-time-in",
|
||||
$zconf, $text{'default'}, 4, $text{'slave_mins'});
|
||||
|
||||
# Slave records file
|
||||
print &opt_input($text{'slave_file'}, "file", $zconf, $text{'slave_none'}, 40);
|
||||
print &opt_input($text{'slave_file'}, "file", $zconf, $text{'slave_none'}, 80);
|
||||
|
||||
print &choice_input($text{'slave_check'}, "check-names", $zconf,
|
||||
$text{'warn'}, "warn", $text{'fail'}, "fail",
|
||||
@ -53,6 +53,9 @@ print &choice_input($text{'slave_notify'}, "notify", $zconf,
|
||||
$text{'yes'}, "yes", $text{'no'}, "no",
|
||||
$text{'explicit'}, "explicit",
|
||||
$text{'default'}, undef);
|
||||
print &choice_input($text{'slave_format'}, "masterfile-format", $zconf,
|
||||
$text{'slave_raw'}, "raw", $text{'slave_text'}, "text",
|
||||
$text{'default'}, undef);
|
||||
|
||||
print &addr_match_input($text{'slave_update'}, "allow-update", $zconf);
|
||||
print &addr_match_input($text{'slave_transfer'}, "allow-transfer", $zconf);
|
||||
|
@ -185,6 +185,9 @@ slave_max=Maximum transfer time
|
||||
slave_file=Records file
|
||||
slave_check=Check names?
|
||||
slave_notify=Notify slaves of changes?
|
||||
slave_format=Zone file format
|
||||
slave_raw=Raw binary
|
||||
slave_text=Plain text
|
||||
slave_update=Allow updates from..
|
||||
slave_transfer=Allow transfers from..
|
||||
slave_query=Allow queries from..
|
||||
|
@ -29,6 +29,7 @@ $access{'opts'} || &error($text{'master_eoptscannot'});
|
||||
&save_opt("file", \&file_check, $z, $indent);
|
||||
&save_choice("check-names", $z, $indent);
|
||||
&save_choice("notify", $z, $indent);
|
||||
&save_choice("masterfile-format", $z, $indent);
|
||||
&save_addr_match("allow-update", $z, $indent);
|
||||
&save_addr_match("allow-transfer", $z, $indent);
|
||||
&save_addr_match("allow-query", $z, $indent);
|
||||
|
@ -52,12 +52,12 @@ print &ui_table_row($text{'slave_file'},
|
||||
print &ui_table_row($text{'slave_masters'},
|
||||
&ui_textarea("masters",
|
||||
join("\n", split(/\s+/, $config{'default_master'})),
|
||||
4, 30));
|
||||
4, 30), 3);
|
||||
|
||||
# Master port
|
||||
print &ui_table_row($text{'slave_masterport'},
|
||||
&ui_opt_textbox("port", undef, 5, $text{'default'},
|
||||
$text{'slave_master_port'}));
|
||||
$text{'slave_master_port'}), 3);
|
||||
|
||||
# Create on slave servers?
|
||||
my @servers = grep { $_->{'sec'} } &list_slave_servers();
|
||||
|
Reference in New Issue
Block a user