Monday, October 31, 2011

2个不错的dns

因为电信的114问题,dns劫持严重,于是使用了pdnsd来本地缓存dns信息,可是google和opendns的延迟很严重,所以一直在找其他不错的dns

google的8.8.8.8和8.8.4.4以及opendns的208.67.222.222和208.67.220.220,用的人太多了,gfw重点照顾,所以不太好用了

推荐个台湾中华电信dns:168.95.192.1 和 168.95.192.2

编辑pdnsd的配置文件  sudo vim /etc/pdnsd.conf


~/pdnsd.conf.html
# The following section is most appropriate if you have a fixed connection to
# the Internet and an ISP which provides good DNS servers.
server {
    label= "mydns";
    ip = 168.95.192.1,168.95.192.2;  # Put your ISP's DNS-server address(es) here.
#   proxy_only=on;     # Do not query any name servers beside your ISP's.
                       # This may be necessary if you are behind some
                       # kind of firewall and cannot receive replies
                       # from outside name servers.
    timeout=4;         # Server timeout; this may be much shorter
               # that the global timeout option.
    #uptest=if;         # Test if the network interface is active.
    #interface=eth0;    # The name of the interface to check.
    #uptest=ping;
    #    ping_timeout=100;
    interval=10m;      # Check every 10 minutes.
    purge_cache=off;   # Keep stale cache entries in case the ISP's
               # DNS servers go offline.
} 
然后重启就ok了 sudo rc.d restart pdnsd

No comments: