diff options
author | Scott Moser <smoser@ubuntu.com> | 2011-07-19 22:53:05 -0400 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2011-07-19 22:53:05 -0400 |
commit | 6d25c040ee566f6ef85352d7b52eb5947230f78a (patch) | |
tree | cb3f8f99926b3423d623b9a00a95ad5b47b2de7c /templates | |
parent | 20a0cf9bf34408706f34edee5e1e75fd9676774c (diff) | |
download | vyos-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.tmpl | 2 |
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 |