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("erlang.org").
  {ok,{hostent,"erlang.org",[],inet,4,[{192,121,151,106}]}}
  2> inet_res:gethostbyname("Erlang.ORG").
  {error,nxdomain}

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

  git fetch git://github.com/weiss/otp.git case-insensitive-lookups

Links:

  https://github.com/weiss/otp/compare/erlang:maint...case-insensitive-lookups
  https://github.com/weiss/otp/compare/erlang:maint...case-insensitive-lookups.patch

  https://github.com/erlang/otp/pull/763
_______________________________________________
erlang-patches mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-patches