LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-11-2007, 01:14 PM   #1
jjd228
Member
 
Registered: Jan 2004
Distribution: RedHat 9
Posts: 41

Rep: Reputation: 15
HOSTNAME?? why cant i change it?


all i have to do is rename a server. i though HOSTNAME NEWNAME would do it. but when i reboot, the old name is back. anyone wanna clear up this newest mystery for me?
 
Old 09-11-2007, 01:34 PM   #2
bsdunix
Senior Member
 
Registered: May 2006
Distribution: BeOS, BSD, Caldera, CTOS, Debian, LFS, Mac, Mandrake, Red Hat, Slackware, Solaris, SuSE
Posts: 1,761

Rep: Reputation: 80
You probably need to edit at a minimum /etc/hosts and /etc/HOSTNAME to reflect your new hostname. If your server is listed in DNS, you'll have to change the DNS records.

I may have missed something due to some distros have different settings. If this doesn't work for you, then post your distro name/version.
 
Old 09-11-2007, 01:56 PM   #3
jjd228
Member
 
Registered: Jan 2004
Distribution: RedHat 9
Posts: 41

Original Poster
Rep: Reputation: 15
i have edited /etc/hosts and i dont have a HOSTNAME file. so now what?
 
Old 09-11-2007, 02:24 PM   #4
lord-fu
Member
 
Registered: Apr 2005
Location: Ohio
Distribution: Slackware && freeBSD
Posts: 676

Rep: Reputation: 30
I am assuming this is a RedHat variant?
Edit /etc/sysconfig/network and add in the proper hostname.
/etc/hosts is only a bypass of a DNS lookup.

hth
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cant change hostname! secret_squirrel SUSE / openSUSE 3 04-18-2005 10:30 PM
Change HOSTNAME Belize Slackware 8 01-04-2005 03:42 PM
How to change hostname blackbart Linux - Newbie 2 02-01-2004 02:56 PM
change hostname dincer80 Linux - Networking 3 07-31-2003 01:30 AM
hostname change, how to? neo77777 Linux - Networking 3 05-23-2002 10:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration