thakurnp
By:
thakurnp

Slow DNS resolution while using wget and similar commands

November 3, 2014 1.5k 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 4.2.2.2 with some other faster DNS server like 8.8.4.4

above solution is tested with Ubuntu12.04 droplet

Have another answer? Share your knowledge.