Question

Slow DNS resolution while using wget and similar commands

Posted November 3, 2014 2.7k 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.

×
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 4.2.2.2 with some other faster DNS server like 8.8.4.4

above solution is tested with Ubuntu12.04 droplet

Submit an Answer