Changing machine's name
Alexander Boström
abo at kth.se
Sat Mar 24 11:30:50 UTC 2007
lör 2007-03-24 klockan 09:21 +0000 skrev Andy Green:
> 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.
Nah, if you want a fixed hostname, you just set in
in /etc/sysconfig/network by adding a line like this:
HOSTNAME=my.host.name
Much simpler.
Anyway, Paul, figure out what your IP address (the numeric address) is
by running:
/sbin/ip addr
It's the line that starts with "inet" and doesn't say "127.0.0.1". Then
type this command (obv. substituting your IP address):
host the.ip.address
By default, your computer will set the hostname to what that command
returns.
/abo
More information about the fedora-list
mailing list