If your CURL commands are resulting in unable to resolve error, here’s a temporary solution.
Don’t know if you want to switch away from Google, but need to get back up and running? There’s a file on your server called:
nano -w /etc/resolv.conf
Which should look something like this:
nameserver 18.104.22.168 nameserver 22.214.171.124
If you change those lines to the OpenDNS resolver IPs:
nameserver 126.96.36.199 nameserver 188.8.131.52