测试最快的dns服务器

上个月Google推出自己的dns服务器,现在Google推出了他自己的DNS测试工具Namebench,它可以帮你轻松找到最快的DNS。

我现在一直用的OpenDns的,下面 是我使用Namebench的测试数据,我的使用的是深圳电信的宽带,下面的测试,可以看出深圳电信的dns服务器 202.96.128.86 是最快的。

In this test, 202.96.128.86 is 13% Faster than your current primary DNS server

Graphs

Mean Response Duration

Mean Duration Graph

Fastest Individual Response Duration

Fastest Response Graph

Response Distribution Chart (First 200ms)

Response Distribution Graph (first 200ms)

Response Distribution Chart (Full)

Response Distribution Graph (full)

Google Public Dns 谷歌Dns服务

Google今天又给了我们一个惊喜,他们刚刚宣布向所有的互联网用户提供一组快速,安全并且完全免费的DNS解析服务器,地址分别是:

The Google Public DNS IP addresses are as follows:

  • 8.8.8.8
  • 8.8.4.4

今天看到这则消息立刻替换opendns的ip使用,好处呢,还没体验出来,不过ip太好记了

以下是说明和教程:http://code.google.com/intl/zh-CN/speed/public-dns/docs/using.html

2009-12-31:个人测试观点,对身在中国用户的我,现在并不适合,个别网站解析不了。换回了opendns

设置动态域名

动态域名对没有固定IP的服务器特别有用。下面是我设置方法:

这里我使用国内3322.org。功能虽然简单但是够用了

1. 注册用户并进入管理域名 在动态域名(DynamicDNS)下点新建

2. 主机名中填入你要的名称 这里以test.3322.org为例提交。

3. 下载客户端,用户可以再这下各自系统客户端。可以看网站帮助理解详细用法。我这里用

lynx -mime_header -auth=id:pw “http://www.3322.org/dyndns/update?system=dyndns&hostname=test.3322.org”

熟悉Linux都知道 lynx 命令行下浏览器。给3322.org发送个请求来达到更新ip目的
这里我们做个定时处理。

crontab –e

插入一行如下:

20 * * * * lynx -mime_header -auth=user:pass "http://www.3322.org/dyndns/update?system=dyndns&hostname=test.3322.org" >> /dev/null 2>&1

定时没小时20分运行一次。同时输出放入/dev/null

这样基本满是动态域名正确解析我的ip

其他参考

Crontab用法说明-Linux crontab详解

动态域名的申请(no-ip.com)