Solved

change hostname

Posted on 2002-03-13
3
419 Views
Last Modified: 2013-12-27
Hello,

How can I change the hostname of my Solaris?
Thanks!

fancyqin
0
Comment
Question by:fancyqin
3 Comments
 
LVL 3

Expert Comment

by:UkWizard
ID: 6866266
edit /etc/hostname , /etc/hosts and reboot.
0
 
LVL 38

Accepted Solution

by:
yuzh earned 50 total points
ID: 6866546
Hi fancyqin,

   The easy way to to this job is to use /usr/sbin/sys-unconfig , command to undo your systems configuration, and then reboot your system.

    When system boot up, just following the screen to fill in all the new information about you system
configuration.

    Or you manually edit the following files: (use text editor, eg vi)
     /etc/nodename    #if you need to change the name of the machine
    /etc/hostname.interface    (eg hostname.hme0 )
    /etc/hosts                 # Update to reflect new name
    /etc/nsswitch.conf         # Update if your name resolution
    /etc/resolv.conf      
 #Update if your name servers/domain changed (DNS only)
    /etc/defaultdomain   # set you default domain
   /etc/defaultrouter      # Set the default router's IP

   /etc/inet/networks             # Set your network name
   /etc/inet/netmasks             # Set your network number
   /etc/net/ticots/hosts    # For the streams-level loopback
   /etc/ticlts/hosts       # For the streams-level loopback
   /etc/net/ticotsord/hosts  # For the streams-level loopback

   If you have no experience about this files, please make a backup before making the change. after
you edit all the file, reboot your system.

  Good luck!
   
 ============
yuzh
 
   
   
   

   
   
0
 
LVL 1

Expert Comment

by:decdragon
ID: 6866678
thank you for correcting that yuzh
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
AIX Server 10 88
Python Assistance 7 86
Cygwin VIM in WIndows 2007: Unable to copy text to Windows 10 70
Expiration and Locking of Unix/Solaris OS Accounts 7 49
In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question