{"action":"created","issue":{"url":"https://api.github.com/repos/Mashape/kong/issues/127","labels_url":"https://api.github.com/repos/Mashape/kong/issues/127/labels{/name}","comments_url":"https://api.github.com/repos/Mashape/kong/issues/127/comments","events_url":"https://api.github.com/repos/Mashape/kong/issues/127/events","html_url":"https://github.com/Mashape/kong/issues/127","id":67282902,"number":127,"title":"Nginx resolver","user":{"login":"thefosk","id":964813,"avatar_url":"https://avatars.githubusercontent.com/u/964813?v=3","gravatar_id":"","url":"https://api.github.com/users/thefosk","html_url":"https://github.com/thefosk","followers_url":"https://api.github.com/users/thefosk/followers","following_url":"https://api.github.com/users/thefosk/following{/other_user}","gists_url":"https://api.github.com/users/thefosk/gists{/gist_id}","starred_url":"https://api.github.com/users/thefosk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thefosk/subscriptions","organizations_url":"https://api.github.com/users/thefosk/orgs","repos_url":"https://api.github.com/users/thefosk/repos","events_url":"https://api.github.com/users/thefosk/events{/privacy}","received_events_url":"https://api.github.com/users/thefosk/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Mashape/kong/labels/proxy","name":"proxy","color":"006b75"}],"state":"open","locked":false,"assignee":{"login":"thefosk","id":964813,"avatar_url":"https://avatars.githubusercontent.com/u/964813?v=3","gravatar_id":"","url":"https://api.github.com/users/thefosk","html_url":"https://github.com/thefosk","followers_url":"https://api.github.com/users/thefosk/followers","following_url":"https://api.github.com/users/thefosk/following{/other_user}","gists_url":"https://api.github.com/users/thefosk/gists{/gist_id}","starred_url":"https://api.github.com/users/thefosk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thefosk/subscriptions","organizations_url":"https://api.github.com/users/thefosk/orgs","repos_url":"https://api.github.com/users/thefosk/repos","events_url":"https://api.github.com/users/thefosk/events{/privacy}","received_events_url":"https://api.github.com/users/thefosk/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/Mashape/kong/milestones/3","html_url":"https://github.com/Mashape/kong/milestones/0.2.0","labels_url":"https://api.github.com/repos/Mashape/kong/milestones/3/labels","id":1030093,"number":3,"title":"0.2.0","description":"Public release.","creator":{"login":"thibaultCha","id":1125431,"avatar_url":"https://avatars.githubusercontent.com/u/1125431?v=3","gravatar_id":"","url":"https://api.github.com/users/thibaultCha","html_url":"https://github.com/thibaultCha","followers_url":"https://api.github.com/users/thibaultCha/followers","following_url":"https://api.github.com/users/thibaultCha/following{/other_user}","gists_url":"https://api.github.com/users/thibaultCha/gists{/gist_id}","starred_url":"https://api.github.com/users/thibaultCha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thibaultCha/subscriptions","organizations_url":"https://api.github.com/users/thibaultCha/orgs","repos_url":"https://api.github.com/users/thibaultCha/repos","events_url":"https://api.github.com/users/thibaultCha/events{/privacy}","received_events_url":"https://api.github.com/users/thibaultCha/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":8,"state":"open","created_at":"2015-03-19T21:55:32Z","updated_at":"2015-04-10T01:14:29Z","due_on":"2015-04-28T07:00:00Z","closed_at":null},"comments":5,"created_at":"2015-04-09T05:16:39Z","updated_at":"2015-04-10T21:08:30Z","closed_at":null,"body":"nginx doesn't support `/etc/hosts` file as a resolver for the `proxy_pass` directive. Right now the resolver is set to the Google DNS service at `8.8.8.8` which requires an Internet connection to work.\r\n\r\nThe alternative is to install another dependency like `dnsmasq` which will simulate a DNS server on `127.0.0.1`, to be configured like:\r\n\r\n```shell\r\necho -e \"user=root\\nno-resolv\\nserver=8.8.8.8\" >> /etc/dnsmasq.conf\r\n```\r\n\r\nWith dnsmasq installed the resolver could point to `127.0.0.1` and it will read from `/etc/hosts` file, or fallback to `8.8.8.8`.\r\n\r\nWhatever we decide to do, we need to change the way it currently works because it makes the Internet a dependency to Kong (!).\r\n"},"comment":{"url":"https://api.github.com/repos/Mashape/kong/issues/comments/91691654","html_url":"https://github.com/Mashape/kong/issues/127#issuecomment-91691654","issue_url":"https://api.github.com/repos/Mashape/kong/issues/127","id":91691654,"user":{"login":"thefosk","id":964813,"avatar_url":"https://avatars.githubusercontent.com/u/964813?v=3","gravatar_id":"","url":"https://api.github.com/users/thefosk","html_url":"https://github.com/thefosk","followers_url":"https://api.github.com/users/thefosk/followers","following_url":"https://api.github.com/users/thefosk/following{/other_user}","gists_url":"https://api.github.com/users/thefosk/gists{/gist_id}","starred_url":"https://api.github.com/users/thefosk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thefosk/subscriptions","organizations_url":"https://api.github.com/users/thefosk/orgs","repos_url":"https://api.github.com/users/thefosk/repos","events_url":"https://api.github.com/users/thefosk/events{/privacy}","received_events_url":"https://api.github.com/users/thefosk/received_events","type":"User","site_admin":false},"created_at":"2015-04-10T21:08:30Z","updated_at":"2015-04-10T21:08:30Z","body":"Nginx **needs** a `resolver` entry otherwise you will start seeing `502 Bad Gateway` errors. So removing the `resolver` entry is not an option. It needs to point somewhere and to make it point to `/etc/hosts` we need to use `dnsmasq` as I suggested."}}