cannot import repo or keys from packages.microsoft.com

I want to install dotnet packages, which I have done before without problem on an older machine.
Now,

 rpm --import https://packages.microsoft.com/keys/microsoft.asc


gives

curl: (7) Couldn't connect to server
error: https://packages.microsoft.com/keys/microsoft.asc: import read failed(2).

and

 wget https://packages.microsoft.com/config/opensuse/15/prod.repo

gives

--2021-11-17 10:22:24--  https://packages.microsoft.com/config/opensuse/15/prod.repo
Resolving packages.microsoft.com (packages.microsoft.com)... 40.114.136.21
Connecting to packages.microsoft.com (packages.microsoft.com)|40.114.136.21|:443... failed: Network is unreachable.

Using the commands on the older machine produces the files without any problem.

Connection with internet is OK, and i do not see differences (yet) in settings between the problem-machine and the older machine.

How do I find the cause and remedy it?

What do you mean with “older machine”?

Is that the age of the hardware, but has the same openSUSE 15.3 running?
or
It has an older version of openSUSE running?

Sorry, I meant a computer with Leap 15.2.
In the mean time, I have managed to get it working on another machine with Leap 15.3, but still no luck on the machine on which I want the dotnet packages.

dns problem?

Yes!

I apparently forgot to enter the IP address for the DNS.

It now works fine, thank you all!