If your server can't resolve domain names, network requests will fail.
Test DNS Resolution
dig google.com
nslookup google.com
ping google.comCheck DNS Configuration
cat /etc/resolv.confFix: Set DNS Servers
echo "nameserver 8.8.8.8" > /etc/resolv.conf
echo "nameserver 1.1.1.1" >> /etc/resolv.confPermanent Fix (systemd-resolved)
Edit /etc/systemd/resolved.conf:
[Resolve]\nDNS=8.8.8.8 1.1.1.1systemctl restart systemd-resolved