Skip to content

Commit

Permalink
dnsmasq strict order/all servers are mutually exclusive. Fixes #13655
Browse files Browse the repository at this point in the history
  • Loading branch information
jim-p committed Apr 12, 2023
1 parent e90ba64 commit f48271e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/etc/inc/services.inc
Original file line number Diff line number Diff line change
Expand Up @@ -2639,6 +2639,8 @@ function services_dnsmasq_configure($restart_dhcp = true) {

if (config_path_enabled('dnsmasq','strict_order')) {
$args .= " --strict-order ";
} else {
$args .= " --all-servers ";
}

if (config_path_enabled('dnsmasq','domain_needed')) {
Expand All @@ -2658,7 +2660,7 @@ function services_dnsmasq_configure($restart_dhcp = true) {
$args .= ' ' . implode(' ', array_values($standard_args));

/* run dnsmasq. Use "-C /dev/null" since we use command line args only (Issue #6730) */
$cmd = "/usr/local/sbin/dnsmasq --all-servers -C /dev/null {$dns_rebind} {$args}";
$cmd = "/usr/local/sbin/dnsmasq -C /dev/null {$dns_rebind} {$args}";
//log_error("dnsmasq command: {$cmd}");
mwexec_bg($cmd);
unset($args);
Expand Down

0 comments on commit f48271e

Please sign in to comment.