summaryrefslogtreecommitdiff
path: root/templates/system/domain-name/node.def
diff options
context:
space:
mode:
authorJames Davidson <james.davidson@vyatta.com>2012-09-10 09:11:42 -0700
committerJames Davidson <james.davidson@vyatta.com>2012-09-10 09:11:42 -0700
commitc087276ca0827d7a58c93c9c7683af7311ef5c58 (patch)
tree991d1dc2b4f24a697bca7bc3e7099cda32c5617e /templates/system/domain-name/node.def
parent9168bdd266fe7c92487356e190d07eb38bdd851a (diff)
downloadvyatta-cfg-system-c087276ca0827d7a58c93c9c7683af7311ef5c58.tar.gz
vyatta-cfg-system-c087276ca0827d7a58c93c9c7683af7311ef5c58.zip
Update /etc/hosts when host name and domain name changes
Diffstat (limited to 'templates/system/domain-name/node.def')
-rw-r--r--templates/system/domain-name/node.def4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/system/domain-name/node.def b/templates/system/domain-name/node.def
index 87f9e0fa..429fd47f 100644
--- a/templates/system/domain-name/node.def
+++ b/templates/system/domain-name/node.def
@@ -5,8 +5,8 @@ help: System domain name
# Allow letter-number-hyphen in label (but can not start or end with hyphen)
syntax:expression: exec "/opt/vyatta/sbin/vyatta_check_domainname.pl $VAR(../host-name).$VAR(@)"
-# also add localhost line into /etc/hosts (see host-name template)?
update: sudo /opt/vyatta/sbin/vyatta_update_resolv.pl
+ sudo /opt/vyatta/sbin/vyatta_update_hosts.pl
-# also update localhost line in /etc/hosts (see host-name template)?
delete: sudo /opt/vyatta/sbin/vyatta_update_resolv.pl
+ sudo /opt/vyatta/sbin/vyatta_update_hosts.pl \ No newline at end of file