• 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?
0
beer9
Asked:
beer9
1 Solution
 
omarfaridCommented:
please see link below:

http://manpages.unixforum.co.uk/man-pages/unix/solaris-10-11_06/1/uname-man-page.html

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

0
 
beer9Author Commented:
Thanks you Omar :-)
0
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