diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/dns-forwarding/vyatta-dns-forwarding.pl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/dns-forwarding/vyatta-dns-forwarding.pl b/scripts/dns-forwarding/vyatta-dns-forwarding.pl index 5714d293..c2109191 100755 --- a/scripts/dns-forwarding/vyatta-dns-forwarding.pl +++ b/scripts/dns-forwarding/vyatta-dns-forwarding.pl @@ -74,6 +74,7 @@ sub dnsforwarding_get_values { $use_system_nameservers = $config->existsOrig("system"); @use_dhcp_nameservers = $config->returnOrigValues("dhcp"); @domain = $config->listOrigNodes("domain"); + $ignore_hosts_file = $config->returnOrigValue("ignore-hosts-file"); } else { @listen_interfaces = $config->returnValues("listen-on"); @@ -82,6 +83,7 @@ sub dnsforwarding_get_values { $use_system_nameservers = $config->exists("system"); @use_dhcp_nameservers = $config->returnValues("dhcp"); @domain = $config->listNodes("domain"); + $ignore_hosts_file = $config->returnValue("ignore-hosts-file"); } if (@listen_interfaces != 0) { @@ -94,6 +96,10 @@ sub dnsforwarding_get_values { $output .= "cache-size=$cache_size\n"; } + if (defined $ignore_hosts_file) { + $output .= "no-hosts\n"; + } + if (@use_nameservers != 0){ $use_dnsmasq_conf = 1; foreach my $cli_nameserver (@use_nameservers) { |