Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I found getconf HOST_NAME_MAX to return 255 on my Sol 10 box, so I'm assuming that that is the max length of a hostname in Solaris 10. Can this be expanded? What about for ipv6?

share|improve this question

The length of a hostname is not related to IP at all. It's a name, so only name resolution protocols matter. DNS, for example, limits the length of a single label (dot-separated part) to 63 characters and the length of a full domain name to 253 characters.

Either way, if you do need a hostname longer than 255 bytes, you have bigger problems.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.