I have a NAS working under my LAN network. Let's say 192.168.1.5
I have a custom domain name such as mynas.com linked to my fixed IP address , routed to this IP.
Now, I want to setup my devices (iPhones, etc.) to my NAS using one and single URL/IP.
Normally I would enter my custom domain name. But when I'm at home, I don't want my traffic to go through internet when it's available under the LAN network.
How can I setup a system which routes my traffic only in local when I'm at home, and by internet when I'm away?
Thank you,