Find the best DNS


Resultado do namebench

Results of namebench

Today in  ##ruby-br channel,  @diegorv send me an excellent tip, a program called  namebench do several tests on some DNS to find the faster. I’ve had an improvement of 69%.

If you want to try “by hand” in Linux, then install the package dnsutils, after you should have dig(/usr/bin/dig) command.  Usage is simply, dig any-site @ip-of-dns. Here my test, comparing my new default DNS and the DNS of Google.

┌─⎛renan@azureuz⎠─⎛~(renan[rwx]::users[r-x]::O[r-x])⎠─⎛2009-12-15 11:22:11⎠
└─⎡$⎦ dig blog.renanfernandes.com.br @8.8.8.8                                          

; <<>> DiG 9.6.1 <<>> blog.renanfernandes.com.br @8.8.8.8
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 8105
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;blog.renanfernandes.com.br.    IN      A

;; ANSWER SECTION:
blog.renanfernandes.com.br. 3107 IN     A       200.234.200.182

;; Query time: 101 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Tue Dec 15 11:22:13 2009
;; MSG SIZE  rcvd: 60

┌─⎛renan@azureuz⎠─⎛~(renan[rwx]::users[r-x]::O[r-x])⎠─⎛2009-12-15 11:22:14⎠
└─⎡$⎦ dig blog.renanfernandes.com.br @201.10.128.3

; <<>> DiG 9.6.1 <<>> blog.renanfernandes.com.br @201.10.128.3
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 19054
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;blog.renanfernandes.com.br.    IN      A

;; ANSWER SECTION:
blog.renanfernandes.com.br. 732 IN      A       200.234.200.182

;; Query time: 75 msec
;; SERVER: 201.10.128.3#53(201.10.128.3)
;; WHEN: Tue Dec 15 11:23:20 2009
;; MSG SIZE  rcvd: 60

Attention  to Query time, here the second DNS of Brasil Telecom(my ISP) is 25% faster than the Google, but you must remember the geographical distance.

See  here too.

Namebench is available in AUR(for Arch Linux users) and in getdeb.net(Caution: Outdated by today’s date) for Ubuntu/Kubuntu users.

Leave a Reply