summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/dns-forwarding/vyatta-dns-forwarding.pl7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/dns-forwarding/vyatta-dns-forwarding.pl b/scripts/dns-forwarding/vyatta-dns-forwarding.pl
index 62144e90..46e038b5 100755
--- a/scripts/dns-forwarding/vyatta-dns-forwarding.pl
+++ b/scripts/dns-forwarding/vyatta-dns-forwarding.pl
@@ -204,11 +204,12 @@ sub check_dhcp_interface {
# main
#
-my ($update_dnsforwarding, $stop_dnsforwarding, $system_nameserver, $dhcp_interface, $outside_cli);
+my ($update_dnsforwarding, $stop_dnsforwarding, $restart_dnsforwarding, $system_nameserver, $dhcp_interface, $outside_cli);
GetOptions(
"update-dnsforwarding!" => \$update_dnsforwarding,
"stop-dnsforwarding!" => \$stop_dnsforwarding,
+ "restart-dnsforwarding!" => \$restart_dnsforwarding,
"system-nameserver!" => \$system_nameserver,
"outside-cli!" => \$outside_cli,
"dhcp-interface=s" => \$dhcp_interface
@@ -257,6 +258,10 @@ if (defined $stop_dnsforwarding) {
dnsforwarding_stop();
}
+if (defined $restart_dnsforwarding) {
+ dnsforwarding_restart();
+}
+
exit 0;
# end of file