Web Hosting Talk







View Full Version : Help! Hostname" on my new dedicated server is spelled wrong


support=profit
08-17-2001, 06:39 AM
The "Hostname" on my new dedicated server is spelled wrong.
There is one letter missing. Since I want the "Hostname" to
have my primary domainname and the name of my company in it,
I need to correct this. Is is possible to do that? And if so, how?

It`s a linux and uses WHM.

regards,
support=profit

davidb
08-17-2001, 06:54 AM
Im sorry, are you talking about the hostname?

support=profit
08-17-2001, 06:58 AM
Originally posted by davidb
Im sorry, are you talking about the hostname?

Yes. Sorry, I have edited the initial question.

davidb
08-17-2001, 07:39 AM
ok, thats what I thought, this is the post that will help a lot

http://www.webhostingtalk.com/showthread.php?s=&threadid=13879&highlight=hostname+linux

support=profit
08-17-2001, 07:55 AM
Thank you, davidb !

support=profit
08-18-2001, 12:29 AM
Originally posted by support=profit
Thank you, davidb !

support=profit
08-20-2001, 09:11 AM
Here is how I solved my problem with changing my server "Hostname":

I used secureCRT 3.3 to SSH into the server. Then I type:

cd ../ect/sysconfig/

then

edit network

I then get the file to edit. Did the changes and typed

ctrl-x

and then

/sbin/reboot

Many thanks to WildWayz for pointing me in the right
direction.

support=profit

tulax24
08-20-2001, 04:29 PM
Just a quick note-
You may also want to check your /etc/hosts file. During the installation redhat will put several entries in that file which is usually checked first when performing a DNS lookup. Correcting this file could save you some DNS requests and perhaps prevent a problem down the road.

support=profit
08-20-2001, 06:29 PM
Thanks for the tip tulax24.
I`ll check it up.


Well I checked it and yes it needed to be corrected as well.

Thanks again talax24

support=profit

Jm4n
08-24-2001, 06:04 PM
Under Linux (and probably most *nix systems) you don't need to reboot for a hostname change to take effect. I only know of one OS that requires a reboot for silly changes like that to take effect ;)

Setting the hostname in Linux:

$ hostname -v newname

This sets the new hostname for the machine. Then update /etc/hosts, and any other files where the hostname may be hard-coded (some grepping around in /etc might be helpful).

Just type 'hostname --help' or 'man hostname' for more information on the 'hostname' tool.