- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: hostname
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-30-2002 04:31 AM
тАО07-30-2002 04:31 AM
i know it's a stupid thing, but i'm not able to change the hostname on my Redhat 7.2. It's localhost now. I tried with hostname command, it changes it but after reboot restore's the old one. I had also modified the /etc/hosts and also /etc/hostname. It seems so difficult to change the hostname.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-30-2002 04:42 AM
тАО07-30-2002 04:42 AM
Re: hostname
+++++++++++++++++++++++++++++++++++++++++++++
> If the point is to keep the machine running (ideal), then two files should
> be modified. /etc/HOSTNAME again can be easily modified using the command
> "hostname host.domain.tld".
I recently did this, and also had to change:
/proc/sys/kernel/hostname, via sysctl. I also restarted daemons, just
in case (postfix, apache, etc). But still had the problem with X as
the OP.
--
Hal Burgiss
+++++++++++++++++++++++++++++++++++++++++++++
Hope this helps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-30-2002 05:06 AM
тАО07-30-2002 05:06 AM
Re: hostname
On other unix systems (hpux,solaris..) it's so simple to change a hostname. On redhat there's something strange. The /etc/HOSTNAME does not exist, i don't know where redhat stores the hostname. I've seen the hostname man and it says to change that file, but it seems that at boot it isn't read!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-30-2002 07:16 AM
тАО07-30-2002 07:16 AM
Solution- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-30-2002 07:18 AM
тАО07-30-2002 07:18 AM
Re: hostname
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-30-2002 07:19 AM
тАО07-30-2002 07:19 AM
Re: hostname
You must modify the following config file :
/etc/sysconfig/network
NETWORKING=yes
HOSTNAME=yourhostname
then do a restart of your network
service network restart or do a reboot
regards
Steven