{"action":"created","issue":{"url":"https://api.github.com/repos/henices/Tcp-DNS-proxy/issues/19","labels_url":"https://api.github.com/repos/henices/Tcp-DNS-proxy/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/henices/Tcp-DNS-proxy/issues/19/comments","events_url":"https://api.github.com/repos/henices/Tcp-DNS-proxy/issues/19/events","html_url":"https://github.com/henices/Tcp-DNS-proxy/issues/19","id":60204835,"number":19,"title":"windows下tcpdns.exe不能用了。tcpdns.py倒是可以在windows下用。","user":{"login":"a8l1vy","id":2919339,"avatar_url":"https://avatars.githubusercontent.com/u/2919339?v=3","gravatar_id":"","url":"https://api.github.com/users/a8l1vy","html_url":"https://github.com/a8l1vy","followers_url":"https://api.github.com/users/a8l1vy/followers","following_url":"https://api.github.com/users/a8l1vy/following{/other_user}","gists_url":"https://api.github.com/users/a8l1vy/gists{/gist_id}","starred_url":"https://api.github.com/users/a8l1vy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a8l1vy/subscriptions","organizations_url":"https://api.github.com/users/a8l1vy/orgs","repos_url":"https://api.github.com/users/a8l1vy/repos","events_url":"https://api.github.com/users/a8l1vy/events{/privacy}","received_events_url":"https://api.github.com/users/a8l1vy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-07T12:42:33Z","updated_at":"2015-03-08T03:22:57Z","closed_at":null,"body":"大哥我又来了，我不会看代码，小菜鸟。终于搞定以后如何在 windows 下运行了。\r\nwindows 8.1 下的安装教程要更新。其实不用安装 Visual Studio 大程序。我安装了搞得的我的网卡多出来一大堆虚拟网卡，修改什么设置非得去对应的虚拟网卡属性下修改，完全搞不懂了，intel 的网卡管理软件不能识别 Visual Studio 带的东西 hyper-v 创建的虚拟网卡，控制不了无线了只能交给 windows 自己控制（我安装的时候就没注意全都安装了）。Visual Studio 里面自带 hyper-v 虚拟机，扰得 Oracle VM VirtualBox 不能运行。汗啊。完全没法卸载干净。只得重新装系统。 - -!\r\n\r\n1. \r\n（1）下载 Tcp-DNS-proxy 右下角 download zip 解压缩\r\n（2）pylru 目录里是空的，在 https://github.com/jlhutch/pylru 点右下角的 download zip 下载解压缩到 D:\\Tcp-DNS-proxy-master\\third_party\\pylru\r\n最后 pylru.py 文件和其他文件是同级位置的。\r\n位置是这样 D:\\Tcp-DNS-proxy-master\\third_party\\pylru\\pylru.py\r\n（3）安装 Python 2.7.9\r\nhttps://www.python.org/downloads/release/python-279/\r\n下载页面下方的 Windows x86-64 MSI installer （64位） 或者 Windows x86 MSI installer （32位）\r\n（4）安装 Microsoft Visual C++ Compiler for Python 2.7 （如果不安装 Microsoft Visual C++ Compiler for Python 2.7 下面的某个步骤会出错，提示安装这个玩意，然后给出一个短链接，跳转后是 Microsoft Visual C++ Compiler for Python 2.7 的英文页面）\r\nhttp://www.microsoft.com/en-us/download/details.aspx?id=44266\r\n（5）将自带目录下的 tcpdns.json.example 修改成 tcpdns.json\r\n（6）将 tcpdns.json 中的内容 0.0.0.0 修改为 127.0.0.1 网卡设置里 ipv4 dns 地址就填写 127.0.0.1\r\n\r\n2. 安装 pip.exe \r\n下载 https://raw.github.com/pypa/pip/master/contrib/get-pip.py （目标另存为保存）\r\n将 get-pip.py 放到 C:\\Python27  目录下。\r\ncmd 窗口工作目录切换到 C:\\Python27 输入命令 python.exe get-pip.py \r\n\r\n3. 安装 python gevent\r\ncmd 窗口工作目录切换到 C:\\Python27\r\n直接输入下面这个运行（全部输入） \r\nC:\\Python27\\Scripts\\pip.exe install gevent\r\n---------------------------以上全部都显示运行成功不出错，再在桌面创建一个 bat 文件运行。\r\n\r\n4. 桌面创建一个 txt 文本\r\n内容输入 \r\nC:\\Python27\\python.exe D:\\Tcp-DNS-proxy-master\\tcpdns.py -f D:\\Tcp-DNS-proxy-master\\tcpdns.json\r\n将文本 txt 后缀修改为 bat ，确认后双击运行。\r\n\r\n5. 需要修改 exe 文件。\r\n现在 tcpdns.exe 的不能运行了。bat 文件内容是这样\r\nstart D:\\Tcp-DNS-proxy-master\\win\\tcpdns.exe -f D:\\Tcp-DNS-proxy-master\\tcpdns.json\r\n它提示找不到 tcpdns.json 位置。应该是 exe 程序里内容错误。\r\n窗口会一闪而逝，快速截个图是这样的。里面出现双反斜杠，程序本身代码问题吧？\r\n截图：\r\nhttps://onedrive.live.com/redir?resid=46B5E9BC655920D2!107&authkey=!ANOUduDnTXAXwVI&v=3&ithint=photo%2cpng"},"comment":{"url":"https://api.github.com/repos/henices/Tcp-DNS-proxy/issues/comments/77730584","html_url":"https://github.com/henices/Tcp-DNS-proxy/issues/19#issuecomment-77730584","issue_url":"https://api.github.com/repos/henices/Tcp-DNS-proxy/issues/19","id":77730584,"user":{"login":"henices","id":929715,"avatar_url":"https://avatars.githubusercontent.com/u/929715?v=3","gravatar_id":"","url":"https://api.github.com/users/henices","html_url":"https://github.com/henices","followers_url":"https://api.github.com/users/henices/followers","following_url":"https://api.github.com/users/henices/following{/other_user}","gists_url":"https://api.github.com/users/henices/gists{/gist_id}","starred_url":"https://api.github.com/users/henices/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henices/subscriptions","organizations_url":"https://api.github.com/users/henices/orgs","repos_url":"https://api.github.com/users/henices/repos","events_url":"https://api.github.com/users/henices/events{/privacy}","received_events_url":"https://api.github.com/users/henices/received_events","type":"User","site_admin":false},"created_at":"2015-03-08T03:22:57Z","updated_at":"2015-03-08T03:22:57Z","body":"1. test dns speed 在 tcpdns.json 里有设置开关，可以不使用。\r\n2. 原来显示域名记录的现在变成调试信息了，可以尝试  -d  选项\r\n\r\npython tcpdns.py -f tcpdns.json -d"}}