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?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/144431

Title:
  gethostbyname() cant resolve names starting/ending with "-"

To manage notifications about this bug go to:
https://bugs.launchpad.net/glibc/+bug/144431/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to