Nextcloud and Collabora not working out of the box

From within the collabora container (univention-app shell collabora) I can’t reach ping domain.de
I manually added the public static IP of my server to/etc/hosts in the collabora container. Usingping domain.de I was able to reach my server now and since then, Collabora works from Nextcloud.

Question 1: Will this change be permanent or will it get lost after an update?
Question 2: Why does it not work out of the box, so what’s an official solution to make collabora work from domain.de and not only from server.domain.de.