Navegando mais rápido usando Cache de DNS

Linux/SL

Salve,

Encontrei esse[1] tutorial do elton minetto[2] sobre como criar um cache de DNS para poder acessar as páginas mais rápidas, evitando a busca e traduão do nome prlo ip num dos servidores DNS principais.

Teste que realizei:

ribas@ribas:~$ dig ubuntu.org

; < <>> DiG 9.3.2 < <>> ubuntu.org
;; global options: printcmd
;; Got answer:
;; ->>HEADER< <- opcode: QUERY, status: NOERROR, id: 44295
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;ubuntu.org. IN A

;; AUTHORITY SECTION:
ubuntu.org. 1800 IN SOA backus.upc.es. hostmaster.upcnet.es. 2006072001 14400 1800 2592000 1800

;; Query time: 903 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Sun Aug 13 14:30:27 2006
;; MSG SIZE rcvd: 95

ribas@ribas:~$ dig ubuntu.org

; <<>> DiG 9.3.2 < <>> ubuntu.org
;; global options: printcmd
;; Got answer:
;; ->>HEADER< <- opcode: QUERY, status: NOERROR, id: 49652
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;ubuntu.org. IN A

;; Query time: 2 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Sun Aug 13 14:30:34 2006
;; MSG SIZE rcvd: 28

ribas@ribas:~$ dig theducks.com.br

; <<>> DiG 9.3.2 < <>> theducks.com.br
;; global options: printcmd
;; Got answer:
;; ->>HEADER< <- opcode: QUERY, status: NOERROR, id: 22843
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;theducks.com.br. IN A

;; ANSWER SECTION:
theducks.com.br. 14400 IN A 209.59.132.48

;; Query time: 216 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Sun Aug 13 14:30:44 2006
;; MSG SIZE rcvd: 49

ribas@ribas:~$ dig theducks.com.br

; <<>> DiG 9.3.2 < <>> theducks.com.br
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 32368
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;theducks.com.br. IN A

;; ANSWER SECTION:
theducks.com.br. 14398 IN A 209.59.132.48

;; Query time: 3 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Sun Aug 13 14:30:46 2006
;; MSG SIZE rcvd: 49

Então como todos poderam ver, no teste do ubuntu.org foram 901mseg de diferena, muito grande :D. No do TheDucks.com.br foram 213mseg. Grande, mas, não tão quanto o do ubuntu.org.

Então, siguam, por conta e risco, e teste para ver a diferena.

[1] http://www.eltonminetto.net/cache-de-dns-para-navegacao-mais-rapida.htm

[2] http://www.eltonminetto.net/

Valeu!

Comente Agora:

Icons by N.Design Studio. Designed By Ben Swift. Powered by WordPress and Free WordPress Themes
Entries RSS Comments RSS Log in