[OpenIndiana-discuss] where is hostname kept

Moinak Ghosh moinakg at gmail.com
Mon Oct 31 15:07:44 UTC 2011


On Mon, Oct 31, 2011 at 8:23 PM, Harry Putnam <reader at newsguy.com> wrote:
> running b 151a
>
> If I wanted to change the hostname of a server permanently, where is
> the hostname kept and where is it read by the OS besides /etc/hosts
> file?
>
> Sorry for the lameo question but googling, the hits are apparently out
> of date and say things like /etc/hostname.NIC.. and I see nothing like
> that.
>

The convention in a static IP configuration is to associate your hostname
with the IP of the primary interface. So you put hostname in /etc/hostname.NIC
file and associate that name to the IP in /etc/hosts.
When using DHCP, that should supply a hostname. Otherwise /etc/nodename
is used. Check   man nodename

Regards,
Moinak.



More information about the OpenIndiana-discuss mailing list