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 Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
PING - Unknown host 127.0.0.1, Unknown host localhost - Solaris 10 Przemek SUN Solaris 4 05-26-2008 01:11 AM
How to delete the files from local host to remote host krishna176 SUN Solaris 3 03-24-2007 04:48 PM
host alias not working: host not found FunnyCats UNIX for Advanced & Expert Users 4 05-13-2005 05:36 PM
host name google Shell Programming and Scripting 1 07-30-2002 05:30 PM
QNX host cannot ping SCO host, vice versa gavon IP Networking 2 08-20-2001 09:57 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-12-2001
phapvn phapvn is offline
Registered User
  
 

Join Date: May 2001
Posts: 17
Cool host name?

Hello,
after I changed the hostname (solaris 8), reboot machine it still show old hostname. I try to ping to the new hostname and it alive. Please tell me what I missed.

Thanks guys,
  #2 (permalink)  
Old 11-12-2001
jokach jokach is offline
Registered User
  
 

Join Date: Nov 2001
Location: Wilkes-Barre, Pa
Posts: 7
What steps did you take to change the hostname?
  #3 (permalink)  
Old 11-12-2001
phapvn phapvn is offline
Registered User
  
 

Join Date: May 2001
Posts: 17
I use vi to edit the host file. any ideas will greatly appreciated?.
  #4 (permalink)  
Old 11-12-2001
jokach jokach is offline
Registered User
  
 

Join Date: Nov 2001
Location: Wilkes-Barre, Pa
Posts: 7
if you're talking about the /etc/hosts file, thats not enough to change the host name. I believe on Solaris there is a sysunconfig utility located probably in /usr/sbin that will reconfigure the hostname for you (I'm primarily HP). If that location isn't right, just do a find from the command line to locate where its at.

Running that should take you through about the same steps as when you first brought the OS up (asking IP address, etc.) Then it will reboot and the new name should take effect.

Hope this helps ...
  #5 (permalink)  
Old 11-12-2001
doeboy's Avatar
doeboy doeboy is offline
Registered User
  
 

Join Date: Oct 2001
Location: Here
Posts: 137
sysunconfig is kind of extreme for just a hostname change. I usually just change the entry in /etc/hosts, and change /etc/hostname.hme0 (or whatever your net card is e.g., hostname.le0 for lance ethernet equipped Suns)
  #6 (permalink)  
Old 11-12-2001
phapvn phapvn is offline
Registered User
  
 

Join Date: May 2001
Posts: 17
Doeboy,
that's what I did. but it doesn't work, I going to use the syssunconfig to see it works, will update tomorrow morning.
thanks for all the reponse, guys.
  #7 (permalink)  
Old 11-12-2001
doeboy's Avatar
doeboy doeboy is offline
Registered User
  
 

Join Date: Oct 2001
Location: Here
Posts: 137
Lightbulb

I forgot.... /etc/nodename on Suns probably should be changed as well.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:32 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0