HeatWare.net header image
HeatWare.net
TwitterRSSEmail
  • Home
  • Windows
    • Windows 8
    • Windows 7
    • Windows Vista
    • Windows XP
  • Linux/Unix
  • Mac
  • Mobile
    • Android
    • iOS
    • Phones (Help / Resources)
  • Software / Programming
    • Free Software
    • Programming – General
    • PHP
    • Ruby/Rails
    • Quality Assurance (QA)
    • Software – General
    • Software Help
    • Databases
  • Cool Websites
  • Other
    • Deals & Bargains
    • News
    • Video Games
    • Hardware
    • Electronics
  • About

0 comments / June 4, 2009 / sood / Linux/Unix

Unable to access Solaris 10 box by hostname

Do you have a Solaris 10 (x86 or SPARC) box that you are able to connect to by IP address, but not by hostname? You might have spent hours trying to resolve this issue like me, but here is the quick and easy solution!

Assigning a hostname to a Solaris 10 machine

  1. Login to the command-line terminal of the Solaris 10 box
  2. Open the file /etc/default/dhcpagent in your favorite text editor, such as vi.
  3. Make sure that the line containing REQUEST_HOSTNAME is not commented out (remove the #) and has a value of ‘yes’. For example:
  4. REQUEST_HOSTNAME=yes

  5. Edit the /etc/hostname.interface file and add the following line:
  6. inet hostname

    interface is the name of the network interface to make the changes to (ex. bge0, nge0)
    hostname is the name you want the machine to use

  7. Type the following commands to clear the DHCP cache:
  8. # ifconfig interfacedhcp release
    # reboot

interface is the name of the network interface to make the changes to (ex. bge0, nge0)

If you still cannot access it by hostname…

  1. Ensure  /etc/nodename has the desired hostname as the first and only line in the file
  2. Ensure /etc/hosts has the IP address and hostname of the machine

Related Posts

  • How to open/uncompress a .tar.bz2 file
  • How to restart sshd service in Solaris 10
  • Insert/Add String to Beginning of a File
  • Using Linux ‘head’ command to preview a file
  • Free Linux utility to convert PDF to Text file

Solaris

0 comments… add one
Cancel reply

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Recent Posts

  • Why You Should Consider Diving Apps
  • How to Buy a Smartphone that Fits Your Budget
  • How to Overcome Frustrating PDF Stress
  • Convert PDF to Word: Easy, Reliable and Quality Conversion
  • PDF to Excel App ­ – A New Way of Handling Tricky Documents

Recent Comments

  • Valarie Walter on Basic Troubleshooting Steps for your Cell Phone
  • John Mists on A Brief History of Android OS
  • syarif on PostgreSQL: How to reload config settings without restarting database
  • Raghu on How to SSH to a server using Ruby – Part I
  • francisco clemente on Basic Troubleshooting Steps for your Cell Phone

Tags

ACSLS Android Cell Phones Cool Software Cool Websites Databases Facebook File System Free Software G2x Galaxy S5 Hot Deals iOS iPhone ISO LG Linux Linux/Unix Mac Mobile mysql OpenStack OS X PHP Postgres PostgreSQL Printers Programming ruby Samsung Galaxy S6 Shell Smartphones Sun T-Mobile Tips Tips & Tricks Ubuntu Unix Virtualization VMWare Windows Windows 7 Windows 8 Windows Vista Windows XP

Latest Tweet

Follow @HeatwaredotNet

SP
@HeatwaredotNet

  • Why You Should Consider Diving Apps https://t.co/Is41cdUv2I #diving-apps
    about 4 years ago

All Categories

Other Links

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Copyright © 2015 — HeatWare