Fix cURL error 28: Resolving timed out after 10003 milliseconds on local

Ref: https://www.digitalocean.com/community/questions/how-do-i-switch-my-dns-resolvers-away-from-google

NOTE: This is for Mac users. Linux I am not sure, but can try.

This is the temporary fix. You have to do every time when you restart your computer.

Open the following file:

/etc/resolv.conf

Which should look something like this:

nameserver 8.8.8.8
nameserver 8.8.4.4

Change those lines with following:

nameserver 208.67.222.222 
nameserver 208.67.220.220

That’s it !!!!!