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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.