Changing machine's name
Paul Smith
phhs80 at gmail.com
Sat Mar 24 12:32:24 UTC 2007
On 3/24/07, Alexander Boström <abo at kth.se> wrote:
> > 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.
Thanks, Alexander. My /etc/sysconfig/network contains:
NETWORKING=yes
HOSTNAME=localhost.localdomain
but
# host 192.168.1.64
64.1.168.192.in-addr.arpa domain name pointer Unknown-00-14-85-38-2c-93.lan.
#
Any further ideas?
Paul
More information about the fedora-list
mailing list