Changing machine's name
Andy Green
andy at warmcat.com
Sat Mar 24 09:21:09 UTC 2007
Paul Smith wrote:
> Dear All
>
> After today's updates, the command line is
>
> [psmith at unknown-00-14-85-38-2c-93 ~]$
>
> and before it was
>
> [psmith at mypc ~]$
>
> How can I replace unknown-00-14-85-38-2c-93 with mypc?
Looks like your ISP or local DHCP server is setting your hostname. By
default dhclient asks to be assigned a new hostname.
man dhclient.conf
shows you can create an /etc/dhclient.conf with a "request" line that
excludes host-name, that should stop it getting set.
-Andy
More information about the users
mailing list