dns.cgi: restart suricata before unbound reload

if unbound is reloaded it start a bunch of dns queries
so suricata needs to now which servers should used.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
Arne Fitzenreiter 2020-03-04 21:38:24 +00:00
parent 0bdb63924b
commit 80bed5817d
1 changed files with 2 additions and 3 deletions

View File

@ -815,9 +815,6 @@ END
# Private function to handle the restart of unbound and more.
sub _handle_unbound_and_more () {
# Restart unbound
system('/usr/local/bin/unboundctrl reload >/dev/null');
# Check if the IDS is running.
if(&IDS::ids_is_running()) {
# Re-generate the file which contains the DNS Server
@ -827,6 +824,8 @@ sub _handle_unbound_and_more () {
# Call suricatactrl to perform a reload.
&IDS::call_suricatactrl("restart");
}
# Restart unbound
system('/usr/local/bin/unboundctrl reload >/dev/null');
}
# Check if the system is online (RED is connected).