DNS Benchmarking作者：gugod 發佈於：
The namebench is a GUI tool that tells you how DNS performed based on your own browser history. Based on the fact that I often visit the websites that I have already visited before, I really like such idea.
I ran namedbench several times, it always tells me that google public dns (184.108.40.206) is about 150% faster then Hinet DNS, which is my ISP DNS. Because the ping latency to 220.127.116.11 is actually 2ms longer, that makes me wonder about if this benchmark is really accurate.
So I wrote of this dns-benchmark perl program myself, which visits my Safari browsing history records in the same time order, and record the total time required on different DNS name servers, namely 18.104.22.168, 22.214.171.124 (Hinet-1), and 126.96.36.199 (Hinet-2).
My result verifies namebench's result, that 188.8.131.52 is indeed very fast: (The numbers are times in seconds)
184.108.40.206: 38.4908065795898 220.127.116.11: 165.176225423813 18.104.22.168: 1172.84540605545
There might be some unknown network issues when running 22.214.171.124, for it is 1000% longer. I will just ignore that result for now.
The total number of history entires is 1021. Many of their hostnames are duplicated, I do not remove those duplicated entries because I want to make this benchmarking acts more like what is happening in the real life. As you can see the in the result, google public dns beats Hinet dns - much more then just 150%.