- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Changing Host Name
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
Forums
Discussions
Discussions
Discussions
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
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-28-2004 06:07 AM
07-28-2004 06:07 AM
Changing Host Name
Can i Change my Server Host name by command line?
i need to make a script to change my server name to a differnet one
Thank You
AFT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2004 06:13 AM
07-28-2004 06:13 AM
Re: Changing Host Name
You can also change the hostname with sam, but it does the same thing.
Its best to do such things and then boot the machine.
Note that many application products such as oracle, sendmail, omniback, openspool will require rconfiguration after a hostname switch.
If you use DNS for name resolution, don't forget to update that database.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2004 06:14 AM
07-28-2004 06:14 AM
Re: Changing Host Name
HTH
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2004 06:14 AM
07-28-2004 06:14 AM
Re: Changing Host Name
# man hostname
You can also set up aliases within /etc/hosts so that you don't have to change the hostname.
Something like this in /etc/hosts:
1.2.3.4 spock kirk mccoy
Then the machine can be referenced by any of those 3 names.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2004 06:18 AM
07-28-2004 06:18 AM
Re: Changing Host Name
You need to do the following at a minimum:
* hostname
* uname -S
* Edit /etc/rc.config.d/netconf so the change will exist after reboot
* Edit /etc/hosts to make the change there too
* Make sure DNS or NIS entries get updated too if you use any of those
Best to reboot as SAM would have you do.
Jeff Traigle