summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2011-07-19 22:53:05 -0400
committerScott Moser <smoser@ubuntu.com>2011-07-19 22:53:05 -0400
commit6d25c040ee566f6ef85352d7b52eb5947230f78a (patch)
treecb3f8f99926b3423d623b9a00a95ad5b47b2de7c /templates
parent20a0cf9bf34408706f34edee5e1e75fd9676774c (diff)
downloadvyos-cloud-init-6d25c040ee566f6ef85352d7b52eb5947230f78a.tar.gz
vyos-cloud-init-6d25c040ee566f6ef85352d7b52eb5947230f78a.zip
improve the updating of /etc/hosts with correct fqdn when possible
Thanks to Adam Gandalman and Marc Cluet for this fix. LP: #812539
Diffstat (limited to 'templates')
-rw-r--r--templates/hosts.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/hosts.tmpl b/templates/hosts.tmpl
index 36db43b5..ae120b02 100644
--- a/templates/hosts.tmpl
+++ b/templates/hosts.tmpl
@@ -13,7 +13,7 @@
# /etc/cloud/cloud.cfg or cloud-config from user-data
#
## The value '$hostname' will be replaced with the local-hostname
-127.0.1.1 $hostname
+127.0.1.1 $fqdn $hostname
127.0.0.1 localhost
# The following lines are desirable for IPv6 capable hosts