[erlang-patches] Make host name lookups case-insensitive

Holger Weiß holger@REDACTED
Tue Jun 2 17:22:00 CEST 2015


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



More information about the erlang-patches mailing list