What is the limit of lenght of hostname in Solaris 10?

Posted on 2009-04-18
Last Modified: 2013-12-27
Hello, I need to get the length of hostname which I can put in /etc/hosts file? Which file determine and fix the lenght of hostname in Solaris 10? What is the default length limit size in Solaris 10?
Question by:beer9
    LVL 40

    Accepted Solution

    please see link below:

    check under /usr/include/sys

    the file utsname.h for the value of SYS_NMLN which points to _SYS_NMLN (which sets the length to 257 char).


    Author Closing Comment

    Thanks you Omar :-)

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    Expiration of TSM data 17 79
    AIX upgrade client samba 15 114
    how to check for shares on HP-UX 1 39
    Parsing a file using ksh 10 42
    Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
    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 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.:
    This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

    729 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

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now