文档章节

用TreeWalk提高网速及其在vista中的安装方法

N3verL4nd
 N3verL4nd
发布于 2017/03/25 10:39
字数 2508
阅读 8
收藏 0
本文中所需的软件请到 http://download.csdn.net/source/738436 下载。
    有时候,我们发现可以上的去QQ,上的去飞信,但是却打不开网页,我通过GOOGLE的搜索发现有这个现象还不是少数。有经验的知道是DNS服务器出了问题,估计没经验的通过搜索引擎也知道是DNS服务器出了问题,这恐怕就是目前国内的电信服务业的劣质服务水平带来的唯一好处:为全民网络基础的普及做出了突出贡献。

解决的办法当然也不止一种,比如更换DNS服务器,相信这也是被采用最多的方案;或者通过二奶机/虚拟机搭建个SERVER系统安装好DNS服务器(WIN SERVER系统,或者LINUX/UNIX下用BIND),再把主机DNS地址更换为搭建好的DNS服务器的IP地址;或者使用OPENDNS等解决方案……

八仙过海,各显神通,各人有各人的解决之道。现在,我在这里再来提供一种方法。

首先我们需要TreeWalk DNS 8.21 – Hawk For Windows 2000, XP, 2003, .NET *这款软件。我已经把所需的安装文件上传到http://download.csdn.net/source/738436,请大家下载,或者到官方页面http://ntcanuck.com/downloads.htm进行下载。

    

如果你不是使用的vistaserver 2008,而是Windows 2000, XP, 2003等的话,那么只要运行twdns821.exe这个安装文件就已经成功了。也可以不往下继续看此文了。

但是如果是vista或者server 2008的话就还需要一个相当漫长的过程。我先把原文介绍贴在这里:

 

Things you need to know about Vista, UAC, TreeWalk and ConFetch:

Vista's new User Account Control feature disrupts TreeWalk maintenance procedures, and ConFetch will fail to run if UAC is enabled. Therefore, there are currently some limitations to successfully installing, and running, the ConFetch plug-in with TreeWalk DNS. It can all be done in a matter of minutes if you review the process first! Here's a few pointers to get you going with TreeWalk and ConFetch Ultra on Vista...

 

Vista Helper, May 14, 2008. The Vista Helper script for TreeWalk v. 8.21 is available to aid Vista users to install, and remove, TreeWalk "Hawk". Due to difficulties for the Service Control Manager in Vista to handle spaces that some users might have included in their administrator account login credentials, those users will have to logon to the Service manually, as described below under "Logon to the newly created service" (you should review that part anyway, before leaving here for the TreeWalk 8.21 Vista Helper page if you only need to install TWDNS).

Install TreeWalk DNS (Hawk) v. 8.21 using Administrative credentials:
        1. Obtain the TreeWalk installer and run it under Vista. When you arrive at the final page with the restart options, select "No, I will restart later", then exit the installer.
        2. Go to Vista's new "Start" button to access the menu and find "Control Panel" if the "Windows+R" key combination doesn't work for you. If "Control Panel" is not there you will need to add it - right-click the Taskbar, select Properties, select the "Start Menu" tab, press the "Customize" button, scroll to "Control Panel" and select "Display as a menu" or "Display as a link" if you prefer. Select "Okay", then press "Apply" and "Okay" to save changes.
        3. Once you've found the "Control Panel", select "User Accounts", select "Turn User Account Control On or Off" and uncheck the check-box there. Press "Okay". Restart the computer as requested by Vista. Logon using the same Administrator account again and simply "Close" any ensuing notices regarding "named.exe", which is TreeWalk's executable.

There are three ways to complete the next step. The simplest may be to run the Vista Helper scriptbut you can do it yourself as described below. If you choose to do this manually, you will need to delete the "twdns" Service that the TreeWalk "Hawk" v. 8.21 installer has just created before you can use TreeWalk with Vista:
    i. Open a command prompt ("Windows+R" keys, type cmd, press "OK" or as described below under "Logon to the newly created service")
    ii. Type sc delete twdns and press the "Enter" key on your keyboard
    iii. 
if your Vista is a 32-bit version: type or paste (exactly as shown)
      sc create twdns binPath= %windir%/system32/dns/bin/named.exe
      ...and press the "Enter" key
    iv. 
if your version of Vista is 64-bit: type or paste (exactly as shown)
      sc create twdns binPath= %windir%/syswow64/dns/bin/named.exe
      ...press the "Enter" key

Logon to the newly created service using one of the following methods:
    a. Open the "Control Panel" again and select "Administrative Tools" to open the "Services" applet. Scroll down to the "twdns" Service and right-click for "Properties" (or double-click "twdns"). Choose the "Log On" tab and enable the "This account" option. Type "./Local_Administrator_Account" (without the quotes, where "Local_Administrator_Account" is the Administrator's Account name you're running under, preceded by a dot and a backslash). Enter and confirm the correct password and "Okay" your way out. (Skip ahead to start the TWDNS service, below.)
    b. ...or, you can open the Start Menu and select "Run" (you may need to add this too, via the Taskbar, right-click for Properties, Start Menu tab, etc.). Once you have the "Run" box, type cmd and press "Okay" to open a command prompt. At the command line, type or paste this (each command must be all on one line with actual login credentials where those are required):
        sc config twdns obj= ./Local_Administrator_Account password= Local_Administrator_Password start= auto DisplayName= TreeWalk
...while keeping spaces intact and using proper credentials. Press the "Enter" key of your keyboard and you should receive "SUCCESS" (if not, please try the previous method). Optionally (but not required), you can also execute this at the command line (including quotation marks, with all on one line):
        sc description twdns "TreeWalk DNS Personal Server"
    c. Start the TWDNS service
 manually from within the Services applet, TreeWalk's Control Panel or with this command:
        net start twdns
Confirm that TreeWalk is working normally before installing ConFetch Ultra.

Note: After you're done you should see "TreeWalk" as the displayed name but the service will still only respond to commands that define "twdns", just like it always has.

Install ConFetch Ultra v. 13.7.4.25 using Administrative credentials:
        
After you've satisfactorily installed TreeWalk, obtain the ConFetch Ultra installer and run it under Vista. You will not be able to run ConFetch with UAC "On" as ConFetch needs to update TreeWalk's configuration to activate filtering.

You can print a shortened text version of the above or download a slightly more printer-friendly version in .zip format for reference.

 

 

原文链接:http://confetch.com/history.htm

这个网页国内可能访问不到,我们需要翻越GFW(GONG FU WANG? 囧rz)。说明一下,这个网站是一个名叫ConFetch的(一款TreeWalk插件)软件的介绍页,这里在介绍了这个插件自己的同时却提供了在Vista上安装TreeWalk的方法。我们可以在安装好TreeWalk后不用去安装这个插件的,使用这个插件需要用到代理。TreeWalk的官方页上只说明了Vista version pending就再也没有任何关于在Vista上安装TreeWalk的说明了。

英文可以的朋友可以直接参照上文,下面我简略的翻译并说明一下安装过程。

 

    *整个过程中都使用同一个系统账号登录,不要更换

        1.       右键以管理员权限运行twdns821.exe安装程序,到最后一步选择No,I will restart later

        2.       关闭UAC并重启

        3.       重启后系统如果发出任何和“named.exe”相关的提示均直接关闭提示框,不用理会

        4.       (直接运行脚本,不推荐)运行Vista Helper script(我修改了一份以适合中文版Vista),记住要右键以管理员权限运行

 

Vista Helper script的内容:

  1. :://TreeWalk Installer/Uninstaller Helper for Vista x86[32-bit] and x64[64-bit]-May 14,2008
  2. @echo off
  3.   title TreeWalk "Hawk" 8.21 Vista Helper
  4.     :: //Check to see if Vista is installed here
  5.       ver | find "Version 6">nul
  6.         if not errorlevel 1 goto yvsix
  7.         if errorlevel 1 goto nvsix
  8.       :yvsix :: //It's Vista, so check for service configuration
  9.         sc query twdns | find "1060">nul
  10.         if not errorlevel 1 goto install
  11.         if errorlevel 1 goto uninstall
  12.       :install :: // TreeWalk service is not installed, so install it
  13.         echo/
  14.         echo  Supply credentials for your current Administrator profile
  15.         echo/
  16.         echo  Provide current Administrator Username, then press Enter:
  17.         set /p twusr=
  18.         echo  Provide current Administrator Password, then press Enter:
  19.         set /p twpwd=
  20.         echo/
  21.         echo  Please type the number for a selection, then press Enter:
  22.         echo/
  23.         echo  [1] Information is correct. Submit.
  24.         echo  [2] There is an error. Try again...
  25.         set selected=
  26.         set /p selected=  
  27.         if not '%selected%'=='' set selected=%selected:~0,1%
  28.         if '%selected%'=='1' goto proceed
  29.         if '%selected%'=='2' goto yvsix
  30.         cls
  31.         echo/
  32.         echo "%selected%": Invalid input. Please try again . . .
  33.         echo/
  34.         goto yvsix
  35.       :proceed :: // Determine if Vista is 32-bit or 64-bit
  36.         cls
  37.         if not exist %windir%/syswow64 goto lowbit
  38.         sc create twdns binPath= %windir%/syswow64/dns/bin/named.exe
  39.         goto twserv
  40.       :lowbit :: // If Vista is 32-bit then we do this instead
  41.         sc create twdns binPath= %windir%/system32/dns/bin/named.exe
  42.       :twserv :: // Using your credentials to configure the service 
  43.         sc config twdns obj= ./%twusr% password= %twpwd% start= auto DisplayName= TreeWalk
  44.         sc description twdns "TreeWalk DNS Personal Server"
  45.       net start twdns
  46.         set twusr=
  47.         set twpwd=
  48.         echo  The twdns service should now indicate a successful start.
  49.         echo  To exit here, just do this:
  50.         pause
  51.         goto end
  52.       :nvsix :: // Oops! This is not Vista!
  53.         echo/
  54.         echo  Sorry^! You need Vista to use this script^!
  55.         pause
  56.       :end
  57.         exit
  58.       :uninstall :: // Does the user wish to remove TreeWalk?
  59.         echo/
  60.         echo  The TreeWalk Uninstaller will be invoked if you continue^!
  61.         echo  The "twdns" Service will also be deleted if you continue^!
  62.         echo  You must run this again when you re-install TreeWalk DNS.
  63.         echo  Press the "X" now to decline [in the red box, top right].
  64.         pause
  65.         cls
  66.         echo/
  67.         net stop twdns
  68.         sc delete twdns
  69.         echo/
  70.       echo  You can now uninstall TreeWalk from this computer^!
  71.     if exist %windir%/syswow64 %windir%/syswow64/dns/unins000.exe
  72.   if not exist %windir%/syswow64 %windir%/system32/dns/unins000.exe
  73. exit

 

如果是要在中文Vista上运行则需要把ver | find "Version 6">nul这一句改成ver | find "版本 6">nul,保存这段脚本为Vista Helper script.cmd即可使用。

 

    手动方法:

        -1:运行cmd,进入命令提示符

        -2:运行sc delete twdns指令

        -332位系统运行sc create twdns binPath= %windir%/system32/dns/bin/named.exe;64位系统运行sc create twdns binPath= %windir%/syswow64/dns/bin/named.exe

 

 

        5.       运行service.msc,打开服务管理配置窗口,找到twdns服务

        6.       双击twdns服务或者右键属性打开

        7.       切换到登录标签

        8.       默认的选择是本地系统账户(L),这里我们需要选择第二项此账户(T),写入“./当前登录的账户名”(也可以浏览->高级->立即查找,找到目前自己登录的账户名,双击->确定),这个账户一定是要管理员权限的,然后需要输入密码,确定即可。

        9.       切换到“恢复”标签,第一次失败和第二次失败都选择成重新启动服务

        10.   切换到常规,启动类型为自动

        11.   启动该服务

        12.   打开TreeWalk Control Panel,如果状态栏显示Service is running,就表示安装成功了。

 

在安装后的开始几天里,效果并不是很明显,在使用几天后(需要给程序一个建立DNS缓存的过程),你就会很明显的感觉到浏览网页快了不少。在Vista中,有可能启动会失败,这样的话就需要进入服务管理(运行service.msc)),手动启动该服务(twdns)

 

测试本地DNS是否成功运行的方法:

        1.       运行cmd

        2.       运行nslookup google.com

        3.       如果返回类似下面的就表示服务器工作正常

        服务器:localhost

                Address:127.0.0.1

        非权威应答:

        名称:google.com

                Addressxxxxxx

        4.       如果返回这些就表示服务器没有工作或者不正常

        服务器:unknow

                Address:127.0.0.1

                ***Unknow找不到google.com:No response from server


之后可以开启UAC,不过开启UAC后要以管理员权限才能打开TreeWalk control panel

© 著作权归作者所有

N3verL4nd
粉丝 1
博文 379
码字总数 481243
作品 0
朝阳
私信 提问
给电脑网速减负

当我们在进行基于网络的工作等相关的内容时,网速是我们必须要考虑的因素之一,那么如何能让我们的网速快呢,简单呀,自己拉个光纤玩玩;呵呵,所以呢,本文不能解决你网速慢的更本问题,只能...

大郭讲堂
2014/08/18
0
0
进军杀毒市场!百度杀毒软件2013正式发布

2012年,百度曾面向泰国市场推出了电脑优化工具Baidu PC Faster,现在,百度终于亮出了大招,正式推出了百度杀毒软件2013(Baidu Antivirus 2013),不过该产品仅有英语版本,同样是面向泰国...

罗树鹏
2013/02/28
8K
102
无线网络稳定性测试方案

一.宽带网速测试 二. 网络丢包测试 三.信号强度测试 四.无线速率测试 五.无线稳定测试 六.无线信号强弱测试 附件: sniffer也叫抓数据包软件,是一种基于被动侦听原理的网络分析软件。使用这...

denghujun_2006
2017/03/15
0
0
为何政府机关被禁止采购 Win8 系统?

上周,中国政府采购网发布《关于进行信息类协议供货强制节能产品补充招标的通知》(以下简称“《通知》”)。《通知》要求,所有计算机设备不允许安装Win 8操作系统。 腾讯科技致电中央国家机关...

oschina
2014/05/21
7.2K
65
解决VPN服务器默认路由的困扰

现在移动办公已经变得家常便饭,每次外出出差办公需要访问单位的内网服务器时,该怎么办呢?相信很多人都想到了VPN连接!的确,使用VPN连接,我们可以利用现成的Internet网络通道,来登录进入单...

弄潮儿123
2013/01/06
0
0

没有更多内容

加载失败,请刷新页面

加载更多

centos 查看删除旧内核

1、查看系统中安装的内核 $ yum list installed | grep kernel 2、删除系统中旧内核 $ yum install yum-utils$ package-cleanup --oldkernels --count=2...

编程老陆
43分钟前
7
0
ES6

ES6:不改变原理的基础上,让API变得更简单 一、let:代替var用于声明变量 1、var的缺点: (1)声明提前 (2)没有块级作用域 2、let的优点: (1)组织了申明提前 (2)让let所在的块({}),...

wytao1995
今天
3
0
kubernetes 环境搭建 —— minikube

创建集群 minikube start 搭建好 k8s 集群后,可以查看集群的状态以及部署应用。主要用到的是 k8s 的 api,这通常需借助于 kutectl 命令行工具 基本操作 kubectl versionkubectl cluster-i...

lemos
今天
9
0
关于js混淆与反混淆还原操作

使用js的混淆加密,其目的是为了保护我们的前端代码逻辑,对应一些搞技术吃饭的公司来说,为了防止被竞争对手抓取或使用自己的代码,就会考虑如何加密,或者混淆js来达到代码保护。 1、为什么...

开源oschina
今天
11
0
用盛金公式解三次方程(ansi c版)

/* cc cubic.c -lm gcc cubic.c -lm Shengjin's Formulas Univariate cubic equation aX ^ 3 + bX ^ 2 + cX + d = 0, (a, b, c, d < R, and a!= 0). Multiple root disc......

wangxuwei
今天
9
0

没有更多内容

加载失败,请刷新页面

加载更多

返回顶部
顶部