Code with file operations replaced with the SynoWebAPI call
Adding/removing TXT records to Synology DSM DNS Server script