Re: How to set hostname?

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

 



On Thu, 2007-12-20 at 09:37 -0500, Christian Convey wrote:
> When I installed FC7, I let it use the installer's default hostname.
> 
> I need to change it from a command line, but I can't find any file
> under "/etc" that contains the string "new-host-2".
> 
> In /etc/sysconfig/network, I have this:
>    HOSTNAME=localhost.localdomain
> 
> So does anyone know where that string "new-host-2" is coming from?  Is
> it just a default that the system will use until I alter
> /etc/sysconfig/network to have a hostname other than
> "localhost.localdomain"?
----
grep -r 'new-host-2' /etc/sysconfig

most likely, if it's not in /etc/sysconfig/network it's going to be set
in /etc/sysconfig/network-scripts/ifcfg-eth0 (or ifcfg-eth1...)

It's possible that the hostname will come from DHCP server but that is
not usual.

Craig


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux