summaryrefslogtreecommitdiff
path: root/templates/system
diff options
context:
space:
mode:
authorMohit Mehta <mohit.mehta@vyatta.com>2008-08-07 06:52:29 +0000
committerMohit Mehta <mohit.mehta@vyatta.com>2008-08-07 06:52:29 +0000
commitcb7488952417b19d6a33ef7e9349ff13ca6e92da (patch)
treef40e5f45932fd361d32d55d14bfdee82d379400e /templates/system
parent5b8a423bda33dee2e19faea3bb4ddcd078554d0c (diff)
downloadvyatta-cfg-quagga-cb7488952417b19d6a33ef7e9349ff13ca6e92da.tar.gz
vyatta-cfg-quagga-cb7488952417b19d6a33ef7e9349ff13ca6e92da.zip
any change in system name-servers should be communicated to dnsmasq
Diffstat (limited to 'templates/system')
-rw-r--r--templates/system/name-server/node.def6
1 files changed, 6 insertions, 0 deletions
diff --git a/templates/system/name-server/node.def b/templates/system/name-server/node.def
index 3866e82c..b5f38527 100644
--- a/templates/system/name-server/node.def
+++ b/templates/system/name-server/node.def
@@ -9,6 +9,9 @@ else \
echo \\\"nameserver\t $VAR(@)\\\" >> /etc/resolv.conf && \
cat /etc/old_resolv.conf >> /etc/resolv.conf; \
fi && \
+if [ -d /opt/vyatta/config/active/service/dns/forwarding ]; then \
+ /opt/vyatta/sbin/vyatta-dns-forwarding.pl --update-dnsforwarding >&/dev/null; \
+fi && \
if [ -f /etc/ntp.conf ] && grep -q 'server' /etc/ntp.conf; then \
/usr/sbin/invoke-rc.d ntp restart >&/dev/null; \
fi\" "
@@ -16,4 +19,7 @@ delete:expression: "sudo sh -c \"touch /etc/resolv.conf && \
sed -i '/$VAR(@)/d' /etc/resolv.conf && \
if [ -f /etc/ntp.conf ] && grep -q 'server' /etc/ntp.conf; then \
/usr/sbin/invoke-rc.d ntp restart >&/dev/null; \
+fi && \
+if [ -d /opt/vyatta/config/active/service/dns/forwarding ]; then \
+ /opt/vyatta/sbin/vyatta-dns-forwarding.pl --update-dnsforwarding >&/dev/null; \
fi\" "