I have my Nextcloud instance running on Docker. Recently, after a sudden server restart (hosted on-premise), the application is not resolving to the correct internal IP address.
Steps Taken:
- Modified /etc/hosts to map the Nextcloud domain to the internal IP.
- Adjusted netplan configurations.
- Checked and allowed necessary firewall rules for Docker and the server.
- Attempted to flush DNS caches using
resolvectl flush-caches
.
Despite these efforts, the issue persists. When pinging the Nextcloud domain from inside the server, it resolves to an incorrect external IP address.
Question: Could the incorrect resolution to the external IP address instead of the internal IP be causing the issue?
Additional Information:
- The server is running on-premise.
- The issue began after an unexpected server restart.
- Modifications to /etc/hosts and netplan configurations did not resolve the issue.
- Firewall rules have been reviewed and adjusted without success.
Environment:
Nextcloud version: 29.0.3 (Nextcloud Hub 8)
Operating system: Ubuntu Server 22.04
Docker version: 27.0.3
Any assistance in resolving this issue would be greatly appreciated.
Thank you.