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]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux