changing hostname
Jonathan T. Sage
sagejona at theatre.msu.edu
Wed Jan 14 17:45:56 PST 2004
Marco Beishuizen wrote:
> Hi,
>
> I would like to change the hostname of one of my machines without a
> reboot. Is it enough to change my rc.conf and run the /etc/netstart script
> or do I have to do something else?
>
man hostname(1):
NAME
hostname -- set or print name of current host system
SYNOPSIS
hostname [-s] [name-of-host]
a simple
# hostname new.host.name
should do what you're asking. also add it to rc.conf so the changes
stay on next reboot
~j
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 254 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20040114/8c7d707e/attachment.bin
More information about the freebsd-questions
mailing list