Slow DNS resolution while using wget and similar commands

Posted November 3, 2014 3.2k 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)

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
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