Solved

How do I change the servername of our Redhat 4.2 machine?

Posted on 1997-12-15
1
191 Views
Last Modified: 2013-12-15
We have a machine with Redhat 4.2 as OS. As HTTP server, we use Apache 1.2.4.

Currently the name of the machine is apollo.ourdomain.se and we want to change that name to utb.ourdomain.se

Where, in Redhat, do we change the name to utb.ourdomain.se (except in the httpd.conf file for Apache and the configuration of our DNS server)?

Thanks in advance.
0
Comment
Question by:thornbush
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 1

Accepted Solution

by:
dagmar earned 100 total points
ID: 1631028
The name of the local machine is stored in /etc/sysconfig/network.  From the default configuration, it's the second variable set in that file.  Change it there and reboot, or use the hostname command as root to go ahead and change it on the fly.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question