If in Ubuntu Server is executed:
curl https://services.gradle.org/distributions/gradle-7.5.1-bin.zip -O
appears:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:19 --:--:-- 0curl: (6) Could not resolve host: services.gradle.org
Observe the curl: (6) Could not resolve host: services.gradle.org part.
If in Fedora Server is executed the same command, it shows:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
No error, but the gradle-7.5.1-bin.zip file is empty.
If you open a web browser and put the https://services.gradle.org/distributions/gradle-7.5.1-bin.zip in the address bar the download process automatically starts.
So how to fix this situation?
Note Just in case, both Linux are running as VM in VirtualBox