[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Strange host name behavior in F7T2

On 3/2/07, Gerry Tool <gerrytool gmail com> wrote:
When in F7T2, the terminal prompt lists my computer as localhost, even
though I gave it a name during install.
[root localhost ~]#

When in F7T1, it lists my computer as F7T1, the name I gave it when
installing from DVD.
[root f7t1] ~]#

The /etc/hosts files have the same form:
[root localhost ~]# diff /etc/hosts /mnt/f7t1/etc/hosts
<     f7t2.thetoolshed.us     f7t2    localhost.localdomain
>     f7t1.thetoolshed.us     f7t1    localhost.localdomain

This naming persists, even though I set hostname with the hostname command.

The next time I boot to f7t2, the hostname is back to "localhost"
[root localhost ~]# hostname
[root localhost ~]# hostname f7t2.thetoolshed.us
[root localhost ~]# hostname

In f7t1:
[root f7t1 ~]# hostname

Here are the /etc/sysconfig/network file contents:
[root localhost ~]# cat /etc/sysconfig/network
[root localhost ~]# cat /mnt/f7t1/etc/sysconfig/network

There was a bug in F7t1 anaconda (bugzilla #227250) that didn't honor the
host name set by the user; is that still the problem?  Or, is there
something I'm forgetting to do?   I added this comment to the bug report.

In this case, removing the yes from yesHOSTNAME and restarting the network
does not solve the naming problem.
[root localhost ~]# service network restart
Shutting down interface eth0:
[  OK  ]
Shutting down loopback interface:
[  OK  ]
Bringing up loopback interface:
[  OK  ]
Bringing up interface eth0:
Determining IP information for eth0... done.

[  OK  ]
[root localhost ~]#

During install, I had my hostname supplied by DHCP checked (it was
right), but after installation it says localhost too.

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]