diff options
author | Mohit Mehta <mohit.mehta@vyatta.com> | 2008-08-10 04:11:06 +0000 |
---|---|---|
committer | Mohit Mehta <mohit.mehta@vyatta.com> | 2008-08-10 04:11:06 +0000 |
commit | 68410c9702c1e04f25bfe84739aed463c3c92101 (patch) | |
tree | 9ae89091af2336994d03e622fc7c5dde803c4c79 | |
parent | d7202b8de5f2dc0d815cafb64c86ec25df782e70 (diff) | |
download | vyatta-op-68410c9702c1e04f25bfe84739aed463c3c92101.tar.gz vyatta-op-68410c9702c1e04f25bfe84739aed463c3c92101.zip |
use active config directory base to get config values from op-mode
-rw-r--r-- | scripts/vyatta-op-dns-forwarding.pl | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/vyatta-op-dns-forwarding.pl b/scripts/vyatta-op-dns-forwarding.pl index 46f0897..e785eed 100644 --- a/scripts/vyatta-op-dns-forwarding.pl +++ b/scripts/vyatta-op-dns-forwarding.pl @@ -92,9 +92,10 @@ sub get_dns_nameservers { my $vyatta_config = new VyattaConfig; $vyatta_config->setLevel("service dns forwarding"); - my $use_system_nameservers = $vyatta_config->exists("system"); - my @use_dhcp_nameservers = $vyatta_config->returnValues("dhcp"); - my @use_nameservers = $vyatta_config->returnValues("name-server"); + $vyatta_config->{_active_dir_base} = "/opt/vyatta/config/active/"; + my $use_system_nameservers = $vyatta_config->existsOrig("system"); + my @use_dhcp_nameservers = $vyatta_config->returnOrigValues("dhcp"); + my @use_nameservers = $vyatta_config->returnOrigValues("name-server"); my @resolv_conf_nameservers = `grep "^nameserver" /etc/resolv.conf`; my @dnsmasq_conf_nameservers = `grep "server=" /etc/dnsmasq.conf`; my @dnsmasq_running = `ps ax | grep dnsmasq | grep -v grep`; |