Allows you to search a variety of questions and answers
This solution will work on all RH-based operating systems.
1. Login to your server as 'root' and run
#vi /etc/hosts - this will open up the /etc/hosts file using VIM editor
2. Change the values after your server's main IP address to reflect your desired hostname. You must put in a valid hostname, one that will resolve as one of the options. Example:
127.0.0.1 localhost
1.1.1.1 myhostname.mydomain.com myhostname
3. After you are finished, save the file by running
:wq
4. When you're back at the prompt, run
#vi /etc/sysconfig/network
5. In the network file, next to your IP, change the current value with your new valid hostname (myhostname.mydomain.com)
6. When you're done, save the file
:wq
If the hostname did not take effect automatically (as it should), issue a server wide reboot for these effects to take change
#shutdown -r now
Wait for the machine to come back up and double check your new hostname by running the #hostname command.
Just to note, you can also check to make sure that /proc/sys/kernel/hostname has also been updated to the new hostname.
AYKsolutions - best solution for small/high business I have several plans with them and i can sleep well because their team watch over my servers. I started with a small shared account and now, after two years i have multiple dedicated boxes. I like the way they treat their customers, even if they have a small or a big plan. Their tehnical support is the best i ever meet ( worked with many hosting pro viders ). In one word: If you need cheap and no headache for your internet bussiness, AYKsolutions it's your best choice
Dedicated Semi-Managed Server Review I've been using AYKSolutions for about 2 years now and their support and servers have been great. They assisted me with the transition of all my websites and databases from my old server onto their system with no problem. If I ever need them for support or a change they respond fast and always keep me up to date with the status of my support ticket. I highly recommend using this company especially if you're looking for someone to assist with server management. Best of all their cost is great!
I have been using AYK for about 2 years now and they are always on top of any issues I have. They have gone over and beyond helping me with any problems that come up with the server and they have never said "no" to any of my requests. I would definitely recommend them to anyone looking for a reliable server company.