{"action":"created","issue":{"url":"https://api.github.com/repos/erlang/otp/issues/821","labels_url":"https://api.github.com/repos/erlang/otp/issues/821/labels{/name}","comments_url":"https://api.github.com/repos/erlang/otp/issues/821/comments","events_url":"https://api.github.com/repos/erlang/otp/issues/821/events","html_url":"https://github.com/erlang/otp/pull/821","id":103865492,"number":821,"title":"kernel: inet_res case insensitivity","user":{"login":"stolen","id":183578,"avatar_url":"https://avatars.githubusercontent.com/u/183578?v=3","gravatar_id":"","url":"https://api.github.com/users/stolen","html_url":"https://github.com/stolen","followers_url":"https://api.github.com/users/stolen/followers","following_url":"https://api.github.com/users/stolen/following{/other_user}","gists_url":"https://api.github.com/users/stolen/gists{/gist_id}","starred_url":"https://api.github.com/users/stolen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stolen/subscriptions","organizations_url":"https://api.github.com/users/stolen/orgs","repos_url":"https://api.github.com/users/stolen/repos","events_url":"https://api.github.com/users/stolen/events{/privacy}","received_events_url":"https://api.github.com/users/stolen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-08-29T17:34:41Z","updated_at":"2015-09-09T15:34:15Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/erlang/otp/pulls/821","html_url":"https://github.com/erlang/otp/pull/821","diff_url":"https://github.com/erlang/otp/pull/821.diff","patch_url":"https://github.com/erlang/otp/pull/821.patch"},"body":"Some caching DNS servers respond with records containing domain\r\nnames in case different from requested. This caused native resolver functions\r\nsuch as `inet_res:gethostbyname/{1,2,3}` to return `{error, nxdomain}`\r\neven when resolve actually succeeded.\r\n\r\nHow it looks in shell: https://www.evernote.com/shard/s21/sh/15a0e808-f28d-4166-92fc-9f0eac302fba/babc3f362ae16e067440b27cd137a45b\r\n\r\nThis PR fixes the problem and adds tests for it."},"comment":{"url":"https://api.github.com/repos/erlang/otp/issues/comments/138948883","html_url":"https://github.com/erlang/otp/pull/821#issuecomment-138948883","issue_url":"https://api.github.com/repos/erlang/otp/issues/821","id":138948883,"user":{"login":"stolen","id":183578,"avatar_url":"https://avatars.githubusercontent.com/u/183578?v=3","gravatar_id":"","url":"https://api.github.com/users/stolen","html_url":"https://github.com/stolen","followers_url":"https://api.github.com/users/stolen/followers","following_url":"https://api.github.com/users/stolen/following{/other_user}","gists_url":"https://api.github.com/users/stolen/gists{/gist_id}","starred_url":"https://api.github.com/users/stolen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stolen/subscriptions","organizations_url":"https://api.github.com/users/stolen/orgs","repos_url":"https://api.github.com/users/stolen/repos","events_url":"https://api.github.com/users/stolen/events{/privacy}","received_events_url":"https://api.github.com/users/stolen/received_events","type":"User","site_admin":false},"created_at":"2015-09-09T15:34:15Z","updated_at":"2015-09-09T15:34:15Z","body":"> are you just assuming that the cache entry is lower-cased?\r\nNo, requests for `ExAMple.net` and `examplE.Net` will be queried and cached independently. This is not very good and this is one more reason why your patch is better.\r\n\r\nThe issue in the case where the initial DNS response wasn't lower-cased is fixed in the expense of an extra DNS query."}}