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