Accessing Nextcloud on two different IP addresses by using one domain

Hey, I know this will sound a bit crazy, but i had an idea. I have a NextCloud instance running at home, and I want to let my family access it from the outside of our network. Since I don't have a public IP, my idea was to let my home DNS (pihole, if it matters) let the address nextcloud.domain.something route to the local IP of the machine (eg 192.168.10.20), then from the outside the same domain would route through something like CF Tunnel. Is this doable? Or am I crazy?