diff options
author | Mohit Mehta <mohit.mehta@vyatta.com> | 2008-08-05 07:22:38 +0000 |
---|---|---|
committer | Mohit Mehta <mohit.mehta@vyatta.com> | 2008-08-05 07:22:38 +0000 |
commit | 24ea5effd365d09abf7bdfa7e2c1f6601cacda50 (patch) | |
tree | d13e611facc65d680abbe61b53da0e3e636d9973 /scripts/dns-forwarding | |
parent | 505a40f29bff4799e1fa53ea5f4b7d6697975a31 (diff) | |
download | vyatta-cfg-system-24ea5effd365d09abf7bdfa7e2c1f6601cacda50.tar.gz vyatta-cfg-system-24ea5effd365d09abf7bdfa7e2c1f6601cacda50.zip |
add command for user to enter interfaces on which not to listen for DNS queries
Diffstat (limited to 'scripts/dns-forwarding')
-rw-r--r-- | scripts/dns-forwarding/vyatta-dns-forwarding.pl | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/dns-forwarding/vyatta-dns-forwarding.pl b/scripts/dns-forwarding/vyatta-dns-forwarding.pl index 4eebf6d7..1fb2282a 100644 --- a/scripts/dns-forwarding/vyatta-dns-forwarding.pl +++ b/scripts/dns-forwarding/vyatta-dns-forwarding.pl @@ -62,6 +62,14 @@ sub dnsforwarding_get_values { my $config = new VyattaConfig; $config->setLevel("service dns-forwarding"); + + my @ignore_interfaces = $config->returnValues("ignore-interface"); + if ($#ignore_interfaces >= 0) { + foreach my $interface (@ignore_interfaces) { + $output .= "except-interface=$interface\n"; + } + } + my $cache_size = $config->returnValue("cache-size"); if (defined $cache_size) { $output .= "cache-size=$cache_size\n"; |