Is this 50 max length because a limitation I'm not spotting atm ??

Could have sense use the lengths specified here as max lengths http://en.wikipedia.org/wiki/Hostname#Restrictions_on_valid_host_names :? just asking...

Finally, would be nice to make a code comment with the final decision and explaining it :)