Ive been playing aroudn with the twitter API in a webserver and in my local machine. Ive noticed that in my local machine it works MUCH slowlier, so I think I have some DNS problems. Doint this commands gave me:
time echo "" | nc google.com 80
time: 20 seconds
time echo "" | nc 173.194.65.103 80
time: Instantly
Im running Ubuntu 11.10. Do you guys know how could I solve this? Thanks
Try using
dig
to debug the DNS output. It will give you the response time of your nameserver:I solved it by changing in /etc/resolv.conf
this lines:
This is openDNS. Apparently my router DNS sucks. Thanks!