{"action":"opened","issue":{"url":"https://api.github.com/repos/sindresorhus/module-requests/issues/13","labels_url":"https://api.github.com/repos/sindresorhus/module-requests/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/sindresorhus/module-requests/issues/13/comments","events_url":"https://api.github.com/repos/sindresorhus/module-requests/issues/13/events","html_url":"https://github.com/sindresorhus/module-requests/issues/13","id":93917285,"number":13,"title":"lookup-domain-in-hosts-file","user":{"login":"dylang","id":51505,"avatar_url":"https://avatars.githubusercontent.com/u/51505?v=3","gravatar_id":"","url":"https://api.github.com/users/dylang","html_url":"https://github.com/dylang","followers_url":"https://api.github.com/users/dylang/followers","following_url":"https://api.github.com/users/dylang/following{/other_user}","gists_url":"https://api.github.com/users/dylang/gists{/gist_id}","starred_url":"https://api.github.com/users/dylang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dylang/subscriptions","organizations_url":"https://api.github.com/users/dylang/orgs","repos_url":"https://api.github.com/users/dylang/repos","events_url":"https://api.github.com/users/dylang/events{/privacy}","received_events_url":"https://api.github.com/users/dylang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-09T00:08:02Z","updated_at":"2015-07-09T00:08:02Z","closed_at":null,"body":"### Problem\r\n\r\nSometimes you want to know if a hostname has been mapped in the system's `hosts` file.\r\n\r\n### Solution\r\n\r\nSomething like\r\n\r\n```js\r\nhostsLookup('crazy-cat', function(err, ip) { \r\n  // => ip is false if not found.\r\n  // => ip is value from `hosts` if found.\r\n});\r\n```\r\n"}}