Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

changing hostname

Status
Not open for further replies.

hdamis

ISP
Feb 7, 2005
75
JO
I want to change the hostname for my web server(Fedora core 4)
1. I want to ask if I changed the hostname is there any problem will be after reboot the system , I am afraid because the server is online web server and it uses tomacat and apache . and I the company couldn't wait if the server is down.

2. the network file contain
NETWORKING=yes
HOSTNAME=name.doamin.com
what is the "yes" means here and if I want to change the hostname to name only, it will be any problem.

3. to change the hostname I must change the network file only
NETWORKING=yes
HOSTNAME=name

thanks

 
If you do the change in two parts, you will have the hostname changed.

issue 'hostname new.hostname.com' command
which will set the hostname in MEMORY only, but it becomes effective immediately.

Then, make the change to the "network" file
'HOSTNAME=new.hostname.com'

Changes in the "network" file are re-read at reboot and at every time the /etc/init.d/network service is restarted (which is normally rare to do).

I cannot speak to how this will support or screw up your web server scripts/settings...

D.E.R. Management - IT Project Management Consulting
 
I can't see where this will have any impact on your web server since the http protocol doesn't give two hoots about the name of the host it is running on. It only cares about the names of the virtual hosts it serves. On the other hand, if you are running a mail server on the same machine, that could cause problems since the smtp protocol requires a return path for outgoing mail. This could cause sendmail to look up the hostname to see where it fits in the scheme of things. If you do not use an FQDN, you may find it takes a very long time to start at boot up but it should still start.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top