• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1784
  • Last Modified:

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

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?
1 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).

beer9Author Commented:
Thanks you Omar :-)
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now