Adds bogus alias to /etc/hosts
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnome-system-tools (Ubuntu) |
Fix Released
|
Medium
|
Sebastien Bacher |
Bug Description
I changed the name of my host from 'thanatos' to 'thanatos1' using network-admin.
Here is what it did to my /etc/hosts file.
# diff -u hosts_PREGST hosts
--- hosts_PREGST 2005-06-19 17:54:43.000000000 +0200
+++ hosts 2005-06-24 10:36:30.000000000 +0200
@@ -1,4 +1,4 @@
-127.0.0.1 localhost.
+127.0.0.1 localhost.
127.0.1.1 thanatos
The result is an invalid configuration. 'thanatos' occurs on more
than one line, whereas it should not appear in the file at all
any more. Furthermore, 'thanatos1' is inserted as an alias for
'localhost.
to the hostname.
The appropriate change would be:
-127.0.1.1 thanatos
+127.0.1.1 thanatos1
This bug was filed one year ago in the Debian BTS but nothing
has been done about it.
http://
I just noticed that when I changed the domain name using network-admin,
the following line
::1 ip6-localhost ip6-loopback
was removed from /etc/hosts. I don't know anything about IPv6.
Is the removal of this line good, bad or neither?