diff options
author | Mohit Mehta <mohit.mehta@vyatta.com> | 2008-08-30 05:45:26 +0000 |
---|---|---|
committer | Mohit Mehta <mohit.mehta@vyatta.com> | 2008-08-30 05:45:26 +0000 |
commit | 6411dbdc23e04d7c82c57d10f5488ff08217d13a (patch) | |
tree | 5150533b9201193f48f6e8475b851f362e32f85a /scripts/dns-forwarding | |
parent | eec59c636315c09a005853649557c787246d8ece (diff) | |
download | vyatta-cfg-quagga-6411dbdc23e04d7c82c57d10f5488ff08217d13a.tar.gz vyatta-cfg-quagga-6411dbdc23e04d7c82c57d10f5488ff08217d13a.zip |
move from a 'ignore-interface' model to a 'listen-on' model for DNS forwarding
Diffstat (limited to 'scripts/dns-forwarding')
-rw-r--r-- | scripts/dns-forwarding/vyatta-dns-forwarding.pl | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/scripts/dns-forwarding/vyatta-dns-forwarding.pl b/scripts/dns-forwarding/vyatta-dns-forwarding.pl index 73a4bbe4..c2ef968a 100644 --- a/scripts/dns-forwarding/vyatta-dns-forwarding.pl +++ b/scripts/dns-forwarding/vyatta-dns-forwarding.pl @@ -63,29 +63,29 @@ sub dnsforwarding_get_values { my $output = ''; my $config = new VyattaConfig; my $use_dnsmasq_conf = 0; - my (@ignore_interfaces, $cache_size, @use_nameservers, $use_system_nameservers, @use_dhcp_nameservers); + my (@listen_interfaces, $cache_size, @use_nameservers, $use_system_nameservers, @use_dhcp_nameservers); $config->setLevel("service dns forwarding"); if ($dhclient_script == 1){ $config->{_active_dir_base} = "/opt/vyatta/config/active/"; - @ignore_interfaces = $config->returnOrigValues("ignore-interface"); + @listen_interfaces = $config->returnOrigValues("listen-on"); $cache_size = $config->returnOrigValue("cache-size"); @use_nameservers = $config->returnOrigValues("name-server"); $use_system_nameservers = $config->existsOrig("system"); @use_dhcp_nameservers = $config->returnOrigValues("dhcp"); } else { - @ignore_interfaces = $config->returnValues("ignore-interface"); + @listen_interfaces = $config->returnValues("listen-on"); $cache_size = $config->returnValue("cache-size"); @use_nameservers = $config->returnValues("name-server"); $use_system_nameservers = $config->exists("system"); @use_dhcp_nameservers = $config->returnValues("dhcp"); } - if (@ignore_interfaces != 0) { - foreach my $interface (@ignore_interfaces) { - $output .= "except-interface=$interface\n"; + if (@listen_interfaces != 0) { + foreach my $interface (@listen_interfaces) { + $output .= "interface=$interface\n"; } } |