Changing host name

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Jeremy C. Reed
Date:  
Subject: Changing host name
On Thu, 27 Nov 2003, Anthony Boynes wrote:

> If remember right the hostname command should to it.


hostname(1) only sets the host name for while the system is on. (A reboot
will forget it.)

Have a look at
http://www.computerhope.com/unix/usysinfo.htm

It is set like (in coreutils):

result = sysinfo (SI_SET_HOSTNAME, name, namelen);

net-tools implementation of hostname uses sethostname(2).
http://www.die.net/doc/linux/man/man2/sethostname.2.html

> > want to take joe offline
> > and rename charlie to joe. Both joe and charlie are


Jeremy C. Reed
http://www.reedmedia.net/