Make host name lookups case-insensitive

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Make host name lookups case-insensitive

Holger Weiß
Don't let inet_res:getbyname and inet_res:gethostbyname calls return
{error, nxdomain} if the host name capitalization in the DNS response
differs from the request, like in this example:

  1> inet_res:gethostbyname("").
  2> inet_res:gethostbyname("Erlang.ORG").

The following PR makes sure these lookups are performed in a
case-insensitive manner:

  git fetch git:// case-insensitive-lookups

erlang-patches mailing list
[hidden email]