Make host name lookups case-insensitive
Holger Weiß <[email protected]> Tue, 2 Jun 2015 17:22:00 +0200
| Newsgroups | gmane.comp.lang.erlang.patches |
|---|---|
| Organization | Freie Universität Berlin |
| Message-ID | <[email protected]> |
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
[email protected]
http://erlang.org/mailman/listinfo/erlang-patches