{"action":"created","issue":{"url":"https://api.github.com/repos/nodejs/io.js/issues/1843","labels_url":"https://api.github.com/repos/nodejs/io.js/issues/1843/labels{/name}","comments_url":"https://api.github.com/repos/nodejs/io.js/issues/1843/comments","events_url":"https://api.github.com/repos/nodejs/io.js/issues/1843/events","html_url":"https://github.com/nodejs/io.js/pull/1843","id":82748313,"number":1843,"title":"dns: add new DNS resolver and set it as default","user":{"login":"mscdex","id":54666,"avatar_url":"https://avatars.githubusercontent.com/u/54666?v=3","gravatar_id":"","url":"https://api.github.com/users/mscdex","html_url":"https://github.com/mscdex","followers_url":"https://api.github.com/users/mscdex/followers","following_url":"https://api.github.com/users/mscdex/following{/other_user}","gists_url":"https://api.github.com/users/mscdex/gists{/gist_id}","starred_url":"https://api.github.com/users/mscdex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mscdex/subscriptions","organizations_url":"https://api.github.com/users/mscdex/orgs","repos_url":"https://api.github.com/users/mscdex/repos","events_url":"https://api.github.com/users/mscdex/events{/privacy}","received_events_url":"https://api.github.com/users/mscdex/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nodejs/io.js/labels/dns","name":"dns","color":"fbca04"},{"url":"https://api.github.com/repos/nodejs/io.js/labels/semver-major","name":"semver-major","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":23,"created_at":"2015-05-30T08:25:30Z","updated_at":"2015-06-04T13:17:39Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/nodejs/io.js/pulls/1843","html_url":"https://github.com/nodejs/io.js/pull/1843","diff_url":"https://github.com/nodejs/io.js/pull/1843.diff","patch_url":"https://github.com/nodejs/io.js/pull/1843.patch"},"body":"This adds a new pure JavaScript resolver as the default DNS resolver and makes the old (c-ares) resolver behind a `--use-old-dns` flag."},"comment":{"url":"https://api.github.com/repos/nodejs/io.js/issues/comments/108894798","html_url":"https://github.com/nodejs/io.js/pull/1843#issuecomment-108894798","issue_url":"https://api.github.com/repos/nodejs/io.js/issues/1843","id":108894798,"user":{"login":"silverwind","id":115237,"avatar_url":"https://avatars.githubusercontent.com/u/115237?v=3","gravatar_id":"","url":"https://api.github.com/users/silverwind","html_url":"https://github.com/silverwind","followers_url":"https://api.github.com/users/silverwind/followers","following_url":"https://api.github.com/users/silverwind/following{/other_user}","gists_url":"https://api.github.com/users/silverwind/gists{/gist_id}","starred_url":"https://api.github.com/users/silverwind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silverwind/subscriptions","organizations_url":"https://api.github.com/users/silverwind/orgs","repos_url":"https://api.github.com/users/silverwind/repos","events_url":"https://api.github.com/users/silverwind/events{/privacy}","received_events_url":"https://api.github.com/users/silverwind/received_events","type":"User","site_admin":false},"created_at":"2015-06-04T13:17:39Z","updated_at":"2015-06-04T13:17:39Z","body":"> As far as resetting nameservers, we could provide a separate function like resetServers() or similar.\r\n\r\nI still think that we shouldn't mess with `lookup` at all. There are two methods for a reason, and if you'd make `lookup` use custom servers, I'm not sure why we even need it. I'd wish we could make `resolve` a pure dns implementation that doesn't even honor the hosts file, but if we do that, all hell would probably take loose. :fearful:"}}