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.
good service/support We have been with AYK for years. Good pricing/support. No complaints.
Without doubt the most professional and friendly support team i have ever experienced. These guys are really way above any other company i have worked with in the past.
Great servers, Great Service, Awesome uptime! Our company has been working with AYKSolutions for almost 3 years, hosting several servers for mission-critical projects. The network downtime has been way lower than 30 minutes for OVER 3 years and.. one of our Linux servers scored 450 days of uptime! Needless to say, their Ticket Support always responds in a matter of minutes. At any time of the d ay! I would rate them 10/5 if I could! Kudos to a great company! :)