Re: Changing machine's name

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux