From 6d25c040ee566f6ef85352d7b52eb5947230f78a Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Tue, 19 Jul 2011 22:53:05 -0400 Subject: improve the updating of /etc/hosts with correct fqdn when possible Thanks to Adam Gandalman and Marc Cluet for this fix. LP: #812539 --- templates/hosts.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/hosts.tmpl') 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 -- cgit v1.2.3