Slow DNS resolution while using wget and similar commands

November 3, 2014 2.4k views

commands like wget and ping are taking too much time to resolve domain names. more than 15 seconds sometimes.

This issue is also causing problems with Calls made to another server from Languages like PHP (while making soap request or using functions like filegetcontent)

1 Answer

Well, to be honest I already resolved this issue but I feel need to put it here so that DigitalOcean staff can take some action on it and also help community :)

Resolution is to edit /etc/resolv.conf and replace with some other faster DNS server like

above solution is tested with Ubuntu12.04 droplet

Have another answer? Share your knowledge.