Migrate Parent/Host to Another Instance

What I am still unsure about is that instance parents (instance1/parent) each receive their instance name (instance1/parent/gw-instance1-IP). So, when I move the parent to instance2, the host still contains the previous name of gw-instance1-IP. How to resolve that?