GNOME Bugzilla – Bug 168922
hostname not parsed
Last modified: 2006-01-02 13:32:41 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:
This was already fixed with the latest gentoo improvements