The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Change hostname madmat Linux 3 09-20-2007 07:23 AM
Solaris - unknown hostname - how can I change hostname? XNOR UNIX for Dummies Questions & Answers 1 03-29-2007 07:52 PM
change hostname fishman2001 UNIX for Dummies Questions & Answers 2 01-12-2006 06:39 AM
Change IP and Hostname catwomen HP-UX 3 12-12-2005 07:14 PM
change hostname fishman2001 UNIX for Dummies Questions & Answers 9 10-21-2002 06:07 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 09-19-2008
Registered User
 

Join Date: Jul 2008
Posts: 29
how do change hostname of a unix server

what command do you use to change a unix server name.
i've tried hostname, but when the unix server is rebooted, it reverts back to the old server name.

regards

venhart
Reply With Quote
Forum Sponsor
  #2  
Old 09-19-2008
DukeNuke2's Avatar
Soulman
 

Join Date: Jul 2006
Location: Germany, Berlin
Posts: 1,487
it depends on the unix derivat... in solaris (latest version) are 3 files involved:

- /etc/inet/hosts
- /etc/hostname.nameofprimarynetworkinterface
- /etc/nodename
Reply With Quote
  #3  
Old 09-19-2008
vbe vbe is offline
Moderator
 

Join Date: Sep 2005
Location: Switzerland
Posts: 775
In hp-ux, you would use set_parms (1M)
set_parms hostname
Reply With Quote
  #4  
Old 09-19-2008
Registered User
 

Join Date: Apr 2008
Location: Calgary
Posts: 196
For Solaris 8 & 9:
Code:
/etc/inet/hosts:<IP ADDRESS>       hostname        hostname.domainname.com
/etc/net/ticlts/hosts:hostname     hostname
/etc/net/ticots/hosts:hostname     hostname
/etc/net/ticotsord/hosts:hostname  hostname
/etc/nodename:hostname
/etc/dumpadm.conf:DUMPADM_SAVDIR=/var/crash/hostname
/etc/hostname.<interface>:hostname

Last edited by avronius; 09-19-2008 at 09:15 AM. Reason: Add "& 9", as these are the same files you'd change in both Solaris versions
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 04:17 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0