summaryrefslogtreecommitdiff
path: root/templates/system
diff options
context:
space:
mode:
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\" "