{"action":"created","issue":{"url":"https://api.github.com/repos/c-ares/c-ares/issues/60","repository_url":"https://api.github.com/repos/c-ares/c-ares","labels_url":"https://api.github.com/repos/c-ares/c-ares/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/c-ares/c-ares/issues/60/comments","events_url":"https://api.github.com/repos/c-ares/c-ares/issues/60/events","html_url":"https://github.com/c-ares/c-ares/issues/60","id":168008108,"number":60,"title":"Failed to launch App if the client host leave the DNS field blank","user":{"login":"peterlaser","id":11938491,"avatar_url":"https://avatars.githubusercontent.com/u/11938491?v=3","gravatar_id":"","url":"https://api.github.com/users/peterlaser","html_url":"https://github.com/peterlaser","followers_url":"https://api.github.com/users/peterlaser/followers","following_url":"https://api.github.com/users/peterlaser/following{/other_user}","gists_url":"https://api.github.com/users/peterlaser/gists{/gist_id}","starred_url":"https://api.github.com/users/peterlaser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterlaser/subscriptions","organizations_url":"https://api.github.com/users/peterlaser/orgs","repos_url":"https://api.github.com/users/peterlaser/repos","events_url":"https://api.github.com/users/peterlaser/events{/privacy}","received_events_url":"https://api.github.com/users/peterlaser/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-28T03:46:17Z","updated_at":"2016-08-02T15:22:16Z","closed_at":null,"body":"Steps:\r\n1. Client machines not joined to domain and only one NIC.\r\n2. In Windows Network and Internet setting, Specify IP address explicit and leave the DNS server field blank in the IPv4 settings\r\n3. Launch App which use libcurl/c-ares 1.11\r\n\r\nResult:\r\nApp failed to launch.\r\n\r\nNote:\r\nc-ares 1.10 doesn't have the issue.\r\n\r\nWorkaround\r\nJoin client machine to the domain or populate the IPv4 settings with a DNS server, does not have to be a valid IP address, or more than one NIC\r\n\r\n![ares_init c](https://cloud.githubusercontent.com/assets/11938491/17200474/3e0b20e2-54b8-11e6-8d96-7e80e5b3890c.png)\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/c-ares/c-ares/issues/comments/236939067","html_url":"https://github.com/c-ares/c-ares/issues/60#issuecomment-236939067","issue_url":"https://api.github.com/repos/c-ares/c-ares/issues/60","id":236939067,"user":{"login":"daviddrysdale","id":457208,"avatar_url":"https://avatars.githubusercontent.com/u/457208?v=3","gravatar_id":"","url":"https://api.github.com/users/daviddrysdale","html_url":"https://github.com/daviddrysdale","followers_url":"https://api.github.com/users/daviddrysdale/followers","following_url":"https://api.github.com/users/daviddrysdale/following{/other_user}","gists_url":"https://api.github.com/users/daviddrysdale/gists{/gist_id}","starred_url":"https://api.github.com/users/daviddrysdale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daviddrysdale/subscriptions","organizations_url":"https://api.github.com/users/daviddrysdale/orgs","repos_url":"https://api.github.com/users/daviddrysdale/repos","events_url":"https://api.github.com/users/daviddrysdale/events{/privacy}","received_events_url":"https://api.github.com/users/daviddrysdale/received_events","type":"User","site_admin":false},"created_at":"2016-08-02T15:22:16Z","updated_at":"2016-08-02T15:22:16Z","body":"This behaviour change was introduced in commit 46bb820be3a8, but you're right it probably went too far -- it's probably sensible for an `ARES_EFILE` failure from `init_by_resolv_conf()` to be overridden by a subsequent `init_by_defaults()`.\r\n\r\nHowever, the original change is definitely needed in some contexts -- if the user explicitly specified some options, any failure to apply them in `init_by_options()` should be reported.\r\n\r\nSo I'd suggest just preserving `init_by_options()` failures and reverting to the previous behaviour otherwise. I've put a suggested fix in [pull 61](https://github.com/c-ares/c-ares/pull/61) -- could you check that works in your scenario?"}}
{"actor":{"display_login":"daviddrysdale"}}