summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--network.py2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 062498799..ba4029065 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -8,6 +8,9 @@
* anaconda.spec: Require libdhcp-1.16 or higher (#201907)
+ * network.py (Network): Write out ::1 in /etc/hosts as localhost6
+ rather than localhost (#211800).
+
2006-10-23 Jeremy Katz <katzj@redhat.com>
* lang-table: Add Sinhala (#207426)
diff --git a/network.py b/network.py
index f3735624b..0be4e8e44 100644
--- a/network.py
+++ b/network.py
@@ -499,7 +499,7 @@ class Network:
f.write("# Do not remove the following line, or various programs\n")
f.write("# that require network functionality will fail.\n")
f.write("127.0.0.1\t\t" + localline)
- f.write("::1\t\t" + localline)
+ f.write("::1\t\tlocalhost6.localdomain6 localhost6")
if ip:
nameline = "%s\t\t%s" % (ip, self.hostname)