Bug#268337: Adds bogus alias to /etc/hosts

Thomas Hood Thomas Hood <jdthood@yahoo.co.uk>, 268337@bugs.debian.org
Fri, 27 Aug 2004 10:55:21 +0200


Package: gnome-system-tools
Version: 0.90.0-3
Severity: important

Begin with /etc/hosts:

127.0.0.1 localhost.localdomain localhost
127.0.1.1 thanatos

Set Network Settings|General|Domain name to something different.

Lookee!  /etc/hosts now contains:

127.0.0.1 localhost.localdomain localhost thanatos
127.0.1.1 thanatos

See how 'thanatos', my hostname, has been added as an alias
for localhost.localdomain?  That is broken because I have already
assigned a different 127.* IP address to my hostname as you can
see on the subsequent line.

I don't want the canonical hostname of my machine to be
localhost.localdomain!

The program should not write to /etc/hosts to change the domain
name; instead it should write to /etc/resolv.conf to change the
"search" line.  (Actually it shouldn't do that on my machine
because I have resolvconf installed; gnome-system-tools should
make the change in some way compatible with resolvconf -- see
#258553.)

The fact that the program writes an *invalid* /etc/hosts just makes
the problem worse.


-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (700, 'testing'), (200, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.4.27
Locale: LANG=en_IE@euro, LC_CTYPE=en_IE@euro

Versions of packages gnome-system-tools depends on:
ii  libart-2.0-2              2.3.16-6       Library of functions for 2D graphi
ii  libatk1.0-0               1.6.1-3        The ATK accessibility toolkit
ii  libbonobo2-0              2.6.2-6        Bonobo CORBA interfaces library
ii  libbonoboui2-0            2.6.1-1        The Bonobo UI library
ii  libc6                     2.3.2.ds1-16   GNU C Library: Shared libraries an
ii  libgconf2-4               2.6.3-2        GNOME configuration database syste
ii  libglade2-0               1:2.4.0-1      Library to load .glade files at ru
ii  libglib2.0-0              2.4.6-1        The GLib library of C routines
ii  libgnome2-0               2.6.1.2-2      The GNOME 2 library - runtime file
ii  libgnomecanvas2-0         2.6.1.1-2      A powerful object-oriented display
ii  libgnomeui-0              2.6.1.1-4      The GNOME 2 libraries (User Interf
ii  libgnomevfs2-0            2.6.2-1        The GNOME virtual file-system libr
ii  libgtk2.0-0               2.4.4-2        The GTK+ graphical user interface 
ii  libice6                   4.3.0.dfsg.1-6 Inter-Client Exchange library
ii  liborbit2                 1:2.10.2-1.1   libraries for ORBit2 - a CORBA ORB
ii  libpango1.0-0             1.4.1-2        Layout and rendering of internatio
ii  libpopt0                  1.7-4          lib for parsing cmdline parameters
ii  libsm6                    4.3.0.dfsg.1-6 X Window System Session Management
ii  libxml2                   2.6.11-3       GNOME XML library
ii  perl                      5.8.4-2        Larry Wall's Practical Extraction 
ii  xlibs                     4.3.0.dfsg.1-6 X Window System client libraries m
ii  zlib1g                    1:1.2.1.1-5    compression library - runtime

-- no debconf information