Thank you, I thought the command “host bla bla” would change my dns temporarily, but it’s just a lookup tool.
I have reviewed the DNS cache settings of the router and found out that as source it used a DNS from the ISP that was shut down some time ago. nextcloud.com did change its IP since the DNS went down, and voilà, no connection.