How to change the DNS (ip/name) if image is updated?

Updating of image didn’t update IP but turning off/back on of VM will if you didn’t lock it.