Linux is a Unix-like operating system that is popular in many countries. It has a number of applications and tools that are available for use. One of the most popular applications is Linux, which can be used to run many different programs. One way to use Linux is to change the hostname of your computer. This can be done without rebooting the computer. To do this, you will need to find the hostname of your computer and copy it into a text file. Then, you will need to edit the text file and change the hostname to something else. To change the hostname of your computer, you will need to find the following information: -The name of your computer -The IP address of your computer -The name of your network interface (if any) To find these information, you can use a command such as ipconfig or netsh show ipconfig. If you do not have these commands installed on your computer, you can download them from http://www.tldponline.com/. Once you have downloaded them, they will be installed on your computer when you start up Linux.

Changing the Hostname

First, you must change the config file that controls this. The actual file and its location will vary across distributions. In the Redhat derivatives, the file to modify is /etc/sysconfig/network so vi this file and change the line that reads HOSTNAME=

From this:

To this:

For SuSE distributions you would similarly change the /etc/HOSTNAME file while Debian admins would modify the /etc/hostname file to set the new name.

Next, the /etc/hosts file needs to be changed. This is identical across all flavors and consists of using your favorite text editor and modifying the old hostname within. Such as from this:

To this:

“But”, you mutter under your breath, “I just typed in hostname and got ‘Snoopy’ as a result. It doesn’t work!”.

What you need to know is that the previous steps are to permanently set the new name. You are much too quick to judge, obviously. So, continue on by entering (at the command line as root or a sudoer):

This will set the hostname for now but the change is not saved (that is what the above steps are for, remember?). Go ahead – test it. Type in hostname (without the tickmarks ) and the command should return ‘mdmvr14s9db’ (without the single quotes).

Now let’s set it in stone. If you are using chkconfig and service commands (RedHat family folk, usually), you can simply type

which will restart the network with the new host name. The rest of you should be able to type

to obtain the same results.

Then test again with the hostname command – you should get the new name returned.

This has been the easy part. Hopefully, prior to starting this, you checked all application conf files for any hard coded reference to the new name and changed that as well. And you need to then change your DNS ‘A’ record to also reflect the new name. And once you have restarted named with the new name on the DNS you will have succeeded in temporarily irritating around half of those 18,000 users previously mentioned who now can’t get to the server since the name has not propagated around the network yet. But this too shall pass as long as you hide long enough.

And at least you can keep the small stuffed plush Snoopy sitting at your desk to remind you of that gentler, simpler time.