Red Hat Bugzilla – Bug 135495
Diskless client hostname incorrectly set: ends with a dot
Last modified: 2007-11-30 17:07:04 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3)
Description of problem:
In the disklessrc script, some text cutting magic is used to extract
the hostname from the IP address of the machine, as reported using the
The problem is that the result of the cutting process produces a
hostname terminated with a dot, instead of just a hostname, like so:
^--- extra dot
This causes problems with Gnome, which complains that the hostname of
the machine is not found.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
I am not seeing this here. Could you give me an example of the IP
address that this happens with. IE
> host 184.108.40.206 | sed 's/.* \(.*\)./\1/'
When you run "host" manually, it does this:
[root@gatekeeper root]# host 192.168.200.200
220.127.116.11.in-addr.arpa domain name pointer violet.fma.co.za.
It seems text chopping magic leaves the dot on the end of the sentence
The host app version is as follows:
[root@gatekeeper root]# which host
[root@gatekeeper root]# rpm -q -f /usr/bin/host
In my version of "disklessrc" the hostname is extracted in the
hostname `host $IP | cut -f 5 -d ' '`
Is this from an older version of netboot, perhaps?
ftp://people.redhat.com/dwalsh/netboot has the latest. Will be in U4
However this code is not in the greatest of shape. :^(