Prev: Sharing $HOME between Ubuntu, Debian and CentOS
Next: NYC LOCAL: Wednesday 7 April 2010 NYCBUG: Marco Figueroa on Nepenthes Against Script Kiddies
From: Robert Heller on 5 Apr 2010 14:45 At Mon, 5 Apr 2010 11:55:23 +0000 (UTC) Bit Twister <BitTwister(a)mouse-potato.com> wrote: > > On Mon, 5 Apr 2010 00:09:52 -0700 (PDT), Bennett Haselton wrote: > > I have a CentOS 5.4 machine that resets its hostname to > > "wyzantdb1.wyzant.net" every time I reboot the machine, even if I have > > tried setting the hostname to something else while the machine is > > running. > > Usually on RedHat/Fedora/CentOS type systems, host name is set from > /etc/sysconfig/network via the HOSTNAME= line. > > If you used command line commands to set hostname, I would check the > man page for the command, remove the host name setting from indicated config > file, set /etc/sysconfig/network HOSTNAME=to_desired_FQDN_here > Reboot system and see if it works. > > > > So where else could the hostname be stored? > > No telling since you did not specify your network setup type, wifi, > type of dhcp client if dynamic, static,.. > > Try > cd /etc/sysconfig/network-scripts/ > grep -ri wyzantdb1 * > grep -ri wyzant.net * > > You could save/run this script and grep it's output for the above names. > http://groups.google.com/group/alt.os.linux.mandriva/msg/429ba2526d6a545d > Note that dhcp's client script might also set the hostname if your machine is getting its IP via DHCP. -- Robert Heller -- Get the Deepwoods Software FireFox Toolbar! Deepwoods Software -- Linux Installation and Administration http://www.deepsoft.com/ -- Web Hosting, with CGI and Database heller(a)deepsoft.com -- Contract Programming: C/C++, Tcl/Tk |