No, I don't think gethostbyname should accommodate for any crazy hostname, and I understand your argument. However, the hyphen is a special character. It *is* allowed in hostnames, just not technically as a border character. Many people have made the argument that hostnames aren't technically supposed to start with a digit, and yet gethostbyname will still resolve those addresses. Why not allow border hyphen characters for the same reason of it being practical in terms of reaching actual available web addresses?
No, I don't think gethostbyname should accommodate for any crazy hostname, and I understand your argument. However, the hyphen is a special character. It *is* allowed in hostnames, just not technically as a border character. Many people have made the argument that hostnames aren't technically supposed to start with a digit, and yet gethostbyname will still resolve those addresses. Why not allow border hyphen characters for the same reason of it being practical in terms of reaching actual available web addresses?