curl: (28) Resolving timed out after 5515 milliseconds

If you encounter an error like curl: (28) Resolving timed out after 5515 milliseconds

[user1@hpc-node1 ~]# curl -fsS https://dlang.org/install.sh | bash -s dmd
curl: (28) Resolving timed out after 5515 milliseconds
curl: (28) Resolving timed out after 5512 milliseconds
curl: (28) Resolving timed out after 5514 milliseconds
curl: (28) Resolving timed out after 5513 milliseconds
curl: (28) Resolving timed out after 5514 milliseconds
curl: (28) Resolving timed out after 5514 milliseconds
curl: (28) Resolving timed out after 5515 milliseconds
curl: (28) Resolving timed out after 5514 milliseconds
curl: (28) Resolving timed out after 5515 milliseconds
curl: (28) Resolving timed out after 5515 milliseconds

It is likely a DNS Lookup Resolution Issue. You might want to take a look at /etc/resolv.conf . you may want to change the DNS to another nameserver that resolves faster like one from Google Public DNS IP Addresses

# Generated by NetworkManager
nameserver 192.168.0.1

To another nameserver, maybe like Google Public DNS IP Addresses. You can find more information at https://developers.google.com/speed/public-dns/docs/using

# Generated by NetworkManager
nameserver 8.8.8.8
nameserver 8.8.4.4