Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer 1

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
add comment

Your Answer

 
discard

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.