Adds bogus alias to /etc/hosts

Bug #18892 reported by Thomas Hood
8
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.localdomain localhost
+127.0.0.1 localhost.localdomain localhost thanatos thanatos1
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.localdomain' whereas I have assigned address 127.0.1.1
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://bugs.debian.org/cgi-bin/bugreport.cgi?bug=268337: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=268337

Revision history for this message
Thomas Hood (jdthood) wrote :

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?

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks for your bug, I've forwarded it upstream:
http://bugzilla.gnome.org/show_bug.cgi?id=310109. Setting it as to fix for 5.10

Revision history for this message
Matt Zimmerman (mdz) wrote :

Did this get fixed during Breezy?

Revision history for this message
Carlos Garnacho (carlosg) wrote :

yes :)

Revision history for this message
Sebastien Bacher (seb128) wrote :

thank you for Carlos!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.