![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
it depends on the unix derivat... in solaris (latest version) are 3 files involved:
- /etc/inet/hosts - /etc/hostname.nameofprimarynetworkinterface - /etc/nodename |
|
#3
|
|||
|
|||
|
In hp-ux, you would use set_parms (1M)
set_parms hostname |
|
#4
|
|||
|
|||
|
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 |
|||
| Google The UNIX and Linux Forums |