The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Change HostName nalina UNIX for Dummies Questions & Answers 9 03-25-2008 03:41 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 of Hostname gelbvonn UNIX for Advanced & Expert Users 4 09-20-2004 07:12 PM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 10-15-2002
Registered User
 

Join Date: Apr 2002
Location: New Jersey
Posts: 31
Question change hostname

Hi, ( running solaris 8 )
I know how to change the hostname temparily, by login in as root
typing
hostname = xxxxx

but, this obviously goes when the system is rebooted. I'm not sure what files need changing to make this a permant change.
Could anyone help me please?
Forum Sponsor
  #2  
Old 10-15-2002
Registered User
 

Join Date: Jun 2002
Location: Amsterdam (Netherlands)
Posts: 142
I think

Check the /etc/hosts table, i think you need to change the hostname here also.

After you did this, you can check the /etc directory for more hits on your old hostname:
cd /etc
grep <old hostname> *

if you find some, you had to change then too
  #3  
Old 10-15-2002
Registered User
 

Join Date: Oct 2001
Location: New Jersey
Posts: 12
You need to change /etc/hostname.interface (.ge, .hme0,.le0) and /etc/nodename. Then reboot the machine. You can make the necessary changes in your /etc/hosts file to the new hostname.
  #4  
Old 10-15-2002
witt
Guest
 

Posts: n/a
You can use the command : /usr/sbin/sys-unconfig

The command will be change all necessary files.

For more information, see man pages.

I hope help you !

Witt
  #5  
Old 10-15-2002
DPAI's Avatar
Registered User
 

Join Date: Jul 2001
Posts: 112
Just in summary

Files to change ..
hosts
hostname.<nterface>
nodename
/etc/net/ticots/hosts
/etc/net/ticlts/hosts
/etc/net/ticotsord/hosts
__________________
I haven't lost my mind....
Its backed up on tape somewhere
  #6  
Old 10-16-2002
Registered User
 

Join Date: Apr 2002
Location: New Jersey
Posts: 31
I forgot to mention, that I'm using DHCP, and my sun gets assigned the name "unknown"

I tried some of the advice, but I'm still struggling. when it boots up it still comes up with the name unknown.

any more ideas.
  #7  
Old 10-16-2002
LivinFree's Avatar
Goober Extraordinaire
 

Join Date: Jul 2001
Location: Portland, OR, USA
Posts: 1,584
You might need to change something on the DHCP server, or even possibly on a DNS server (I'm not sure if Solaris gets it's hostname from reverse-DNS after getting an address via DHCP).
You should check with your network administrator.
Google The UNIX and Linux Forums
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 08:56 AM.


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