{"action":"created","issue":{"url":"https://api.github.com/repos/Karasiq/proxychain/issues/2","repository_url":"https://api.github.com/repos/Karasiq/proxychain","labels_url":"https://api.github.com/repos/Karasiq/proxychain/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/Karasiq/proxychain/issues/2/comments","events_url":"https://api.github.com/repos/Karasiq/proxychain/issues/2/events","html_url":"https://github.com/Karasiq/proxychain/issues/2","id":156944113,"number":2,"title":"Name resolution through proxy server?","user":{"login":"ovidiubuligan","id":4757459,"avatar_url":"https://avatars.githubusercontent.com/u/4757459?v=3","gravatar_id":"","url":"https://api.github.com/users/ovidiubuligan","html_url":"https://github.com/ovidiubuligan","followers_url":"https://api.github.com/users/ovidiubuligan/followers","following_url":"https://api.github.com/users/ovidiubuligan/following{/other_user}","gists_url":"https://api.github.com/users/ovidiubuligan/gists{/gist_id}","starred_url":"https://api.github.com/users/ovidiubuligan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ovidiubuligan/subscriptions","organizations_url":"https://api.github.com/users/ovidiubuligan/orgs","repos_url":"https://api.github.com/users/ovidiubuligan/repos","events_url":"https://api.github.com/users/ovidiubuligan/events{/privacy}","received_events_url":"https://api.github.com/users/ovidiubuligan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-05-26T09:41:20Z","updated_at":"2016-06-02T09:25:40Z","closed_at":"2016-05-26T20:31:06Z","body":"Hello,\r\nI am trying to use this behind a proxy. And I get:\r\n```\r\njava.net.UnknownHostException: This is usually a temporary error during hostname resolution and means that the local ser\r\nver did not receive a response from an authoritative server\r\n        at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)\r\n        at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:907)\r\n        at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1302)\r\n        at java.net.InetAddress.getAllByName0(InetAddress.java:1255)\r\n        at java.net.InetAddress.getAllByName(InetAddress.java:1171)\r\n        at java.net.InetAddress.getAllByName(InetAddress.java:1105)\r\n        at java.net.InetAddress.getByName(InetAddress.java:1055)\r\n        at com.karasiq.proxychain.FirewallImpl.connectionIsAllowed(Firewall.scala:49)\r\n        at com.karasiq.proxychain.app.Handler$$anonfun$com$karasiq$proxychain$app$Handler$$waitConnection$1.applyOrElse(\r\nHandler.scala:210)\r\n```\r\nDoes name resolution also go through the proxy ? \r\n\r\nWha I want to do is to create a chain of 2 proxyes : \r\n `proxy1 -> proxy2` All name resolution has to go through the chain.\r\n\r\nIf I want to debug this issue and try a quick fix , would you have any suggestion where in the code to look at?\r\n\r\n**EDIT**:\r\nThis my fist time running any scala code.\r\nI set up these 2 propperties right after `object Boot extends App {`\r\n```\r\n  System.setProperty(\"sun.net.spi.nameservice.nameservers\", \"10.0.1.1\");\r\n  System.setProperty(\"sun.net.spi.nameservice.provider.1\", \"dns,sun\");\r\n```\r\nand now I get a different error \r\n```\r\n[ERROR] [05/26/2016 13:17:28.794] [ProxyChain-akka.actor.default-dispatcher-4] [akka://ProxyChain/user/proxychain-server/$a] DNS error\r\njava.net.UnknownHostException: DNS error\r\n\tat sun.net.spi.nameservice.dns.DNSNameService.resolve(DNSNameService.java:180)\r\n\tat sun.net.spi.nameservice.dns.DNSNameService.lookupAllHostAddr(DNSNameService.java:331)\r\n```\r\nIt treats it as a dns server which is probably not, it's just a squid proxy."},"comment":{"url":"https://api.github.com/repos/Karasiq/proxychain/issues/comments/223240687","html_url":"https://github.com/Karasiq/proxychain/issues/2#issuecomment-223240687","issue_url":"https://api.github.com/repos/Karasiq/proxychain/issues/2","id":223240687,"user":{"login":"Karasiq","id":7199719,"avatar_url":"https://avatars.githubusercontent.com/u/7199719?v=3","gravatar_id":"","url":"https://api.github.com/users/Karasiq","html_url":"https://github.com/Karasiq","followers_url":"https://api.github.com/users/Karasiq/followers","following_url":"https://api.github.com/users/Karasiq/following{/other_user}","gists_url":"https://api.github.com/users/Karasiq/gists{/gist_id}","starred_url":"https://api.github.com/users/Karasiq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Karasiq/subscriptions","organizations_url":"https://api.github.com/users/Karasiq/orgs","repos_url":"https://api.github.com/users/Karasiq/repos","events_url":"https://api.github.com/users/Karasiq/events{/privacy}","received_events_url":"https://api.github.com/users/Karasiq/received_events","type":"User","site_admin":false},"created_at":"2016-06-02T09:25:40Z","updated_at":"2016-06-02T09:25:40Z","body":">I tested with the latest version ad now I don't get any logs to the console on connection\r\n\r\nTry the version with logging 3742489c29fcc72a9e4f382182df3c2dd2807d71\r\nIt should output something like\r\n```\r\n[DEBUG] [06/02/2016 12:21:56.795] [proxy-chain-test-akka.actor.default-dispatcher-2] [ProxyStage(akka://proxy-chain-test)] Sending request to HTTP proxy http://127.0.0.1:9999: CONNECT ipecho.net:80 HTTP/1.1\r\nHost: ipecho.net\r\n\r\n\r\n[DEBUG] [06/02/2016 12:21:56.801] [proxy-chain-test-akka.actor.default-dispatcher-4] [akka://proxy-chain-test/system/IO-TCP/selectors/$a/0] Attempting connection to [/127.0.0.1:9999]\r\n[DEBUG] [06/02/2016 12:21:56.803] [proxy-chain-test-akka.actor.default-dispatcher-4] [akka://proxy-chain-test/system/IO-TCP/selectors/$a/0] Connection established to [/127.0.0.1:9999]\r\n[DEBUG] [06/02/2016 12:21:56.951] [proxy-chain-test-akka.actor.default-dispatcher-6] [ProxyStage(akka://proxy-chain-test)] Received response from HTTP proxy http://127.0.0.1:9999: HTTP/1.1 200 Connection established (HC)\r\n\r\n\r\n[DEBUG] [06/02/2016 12:21:56.951] [proxy-chain-test-akka.actor.default-dispatcher-6] [ProxyStage(akka://proxy-chain-test)] Connection established to ipecho.net:80 through HTTP proxy: http://127.0.0.1:9999\r\n```"}}
{"actor":{"display_login":"Karasiq"}}