Can't access NC locally with external domain

Nextcloud version (eg, 18.0.2):
Operating system and version Ubuntu 20.04
Apache or nginx version
PHP version: 7.3.18

The issue you are facing:

Just set up NC for the first time. Got relevant ports open and port forwarding is working fine.

I have a dynamic DNS setup through no-ip which points to my NC server. There is an SSL certificate attached to the no-ip domain.

If I’m external to the local network, I can access NC absolutely fine using the no-ip domain. If im internal to the network, I can’t use the no-ip domain but can use via local IP address, albeit without SSL because theres no certificate for the local IP.

I have a pi-hole set up which works well and the no-ip domain is not blocked. My router (EE Smarthub) is set to use the pi-hole as DNS so all DNS requests are routed through the pi-hole

How do I use the external no-ip domain name internally?

Is this the first time you’ve seen this error? (Y/N): Y

I’m having this exact same problem (minus the pi-hole set up), and I can’t find information about this issue anywhere. Bump.

Hi mad73.

I actually figured it out myself.

You need to add a DNS entry for the host and related IP into your router or whatever system handles DNS. That way, whenever there’s a request by the hostname it will always get looped back to your internal IP

1 Like

Thanks - that worked for me too.