Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1767
  • 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

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

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