Annoying Gem::RemoteFetcher::UnknownHostError Failure

Strange:

From time to time, a Discourse rebuild fails because of this error (happened a few minutes ago, again):

I, [2020-11-30T04:36:02.650422 #1]  INFO -- : > cd /var/www/discourse && gem update bundler
ERROR:  While executing gem ... (Gem::RemoteFetcher::UnknownHostError)
    timed out (https://rubygems.org/specs.4.8.gz)
I, [2020-11-30T04:37:02.895072 #1]  INFO -- : 

Rerun the build and all is OK :confused:

Seems we are not the only ones seeing this issue:

https://groups.google.com/g/rubygems-org/c/DQd6TDMyi4o

I checked the TTL and the TTL for this hostname is 600 seconds.

My "first guess" is that this issue is a DNS problem based on the short TTL.

See Also:

https://www.cyberciti.biz/faq/how-to-see-time-to-live-ttl-for-a-dns-record/