Synology's DSM lets you add a custom DDNS provider so your DiskStation stays reachable under a permanent hostname. With DNS Beacon your NAS follows your changing IP automatically. Here's the configuration.
Control Panel → External Access → DDNS → Add
Create a free DNS Beacon account, add a hostname and generate an API key — then come back and finish the setup above.
Create free account