After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 168922 - hostname not parsed
hostname not parsed
Status: RESOLVED FIXED
Product: gnome-system-tools
Classification: Deprecated
Component: network-admin
CVS latest
Other All
: Normal normal
: ---
Assigned To: Carlos Garnacho
Carlos Garnacho
Depends on:
Blocks:
 
 
Reported: 2005-03-01 22:55 UTC by Islam Amer
Modified: 2006-01-02 13:32 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10



Description Islam Amer 2005-03-01 22:55:56 UTC
Please describe the problem:
the network-admin tool is not parsing the correct files to get the domain name
and hostname.

It is looking for :
/etc/hostname and /etc/dnsdomainname

which have been deprecated and should be :
/etc/conf.d/hostname and /etc/conf.d/domainname

This is the latest baselayout. Also the files' formats have changed and now look
like this :
cat /etc/conf.d/hostname
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-src/rc-scripts/etc/conf.d/hostname,v 1.2
2004/11/15 19:08:37 vapier Exp $

# Set to the hostname of this machine
HOSTNAME="Phaeronix"

 cat /etc/conf.d/domainname
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-src/rc-scripts/etc/conf.d/domainname,v 1.1
2004/11/15 15:43:28 vapier Exp $

# When setting up resolv.conf, what should take precedence?
# If you wish to always override DHCP/whatever, set this to 1.
OVERRIDE=1

# To have a proper FQDN, you need to setup /etc/hosts and /etc/resolv.conf
# properly (domain entry in /etc/resolv.conf, and FQDN in /etc/hosts).
#
DNSDOMAIN="lan"

# This only set what /bin/hostname returns.  If you need to setup NIS, meaning
# what /bin/domainname returns, please see:
#
#   http://www.linux-nis.org/nis-howto/HOWTO/
#
#NISDOMAIN=""





Steps to reproduce:
1. Run network-admin
2. goto general tab
3. hostname and domainname are empty.
4- if you set them the old files /etc/hostname and /etc/domainname get written.


Actual results:
Hostname and domainname are not parsed correctly from the system files.

Expected results:
It should parse the correct files and write the changed values to the correct files.


Does this happen every time?
Yes

Other information:
Comment 1 Carlos Garnacho 2006-01-02 13:32:41 UTC
This was already fixed with the latest gentoo improvements